Skip to content

feat: add customizable CORS headers to JSON-RPC server#783

Open
karen-sarkisyan wants to merge 2 commits into
a16z:masterfrom
karen-sarkisyan:feat-add-cors
Open

feat: add customizable CORS headers to JSON-RPC server#783
karen-sarkisyan wants to merge 2 commits into
a16z:masterfrom
karen-sarkisyan:feat-add-cors

Conversation

@karen-sarkisyan
Copy link
Copy Markdown
Contributor

closes #701

  • updated jsonrpsee version, add http and tower deps
  • added --allowed-origins parameter. In Config combined it with SocketAddr into a single struct
  • handle result when jsonrpc::start fails

- update jsonrpsee version, add http and tower deps
- add allow_origins argument, use it to instantiate CORS middleware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configuration for CORS policy

1 participant