Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

CORS Max-Age is not set resulting in 2 requests for each command on Firefox #8542

@ethernomad

Description

@ethernomad

Parity/v1.9.7-stable-7919629-20180423/x86_64-linux-gnu/rustc1.25.0
connected to MIX Blockchain

Currently every RPC command is 2 requests from Firefox. First the OPTIONS pre-flight and then the actual request. By setting CORS Max-Age to 10 minutes the number of requests can be cut in half. For high latency connections to the node, this has significant performance improvements.

Geth had the exact same problem: ethereum/go-ethereum#3079
screenshot from 2018-05-04 14-33-09

Metadata

Metadata

Assignees

No one assigned

    Labels

    F7-optimisation 💊An enhancement to provide better overall performance in terms of time-to-completion for a task.M6-rpcapi 📣RPC API.P5-sometimesoon 🌲Issue is worth doing soon.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions