This repository has been 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
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.
Milestone
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
The text was updated successfully, but these errors were encountered: