-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow CORS requests in Secret Store API #10584
Conversation
It looks like @adetante signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contribution! Have you considered using cors
module from jsonrpc-server-utils
crate? Looks like there are some caveats (like case-insensitive origin matching) that are covered there.
You're right: I'm going to change my implementation to the jsonrpc-server-utils crate. |
I updated based on your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Test failure seems unrelated - SS tests are working fine on my laptop. |
On the same model as what is done for JSON-RPC, this PR allows to specify the list of domains to allow for cross-domain requests to Secret Store API.
With CLI flag
--secretstore-http-cors=http://mydomain
or in the toml configuration file.The default behavior is the same as the current one: all cross-domain requests are rejected.