Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPC / Websocket] - Way to add CORS allowlist so we can allow all or specific website to directly connect. #2225

Open
2 tasks done
maestroi opened this issue Feb 16, 2024 · 0 comments

Comments

@maestroi
Copy link
Contributor

maestroi commented Feb 16, 2024

New issue checklist

General information

  • Library version(s): -
  • Browser version(s): -
  • Devices/Simulators/Machine affected: -
  • Reproducible in the testnet? (Yes/No): Yes
  • Related issues: -

Nimiq 0.20.0+

Bug report

Expected behavior

I would expect to connect a browser directly to websocket/rpc interface with nimiq but thats not possible due to blocking in CORS, there is currently no way to add cors allowlist to all for example.

Actual behavior

Blocked by cors in browser.

Steps to reproduce

Connect via website to a rpc node directly.

Crash log? Screenshots? Videos? Sample project?

--

Question or Feature Request

Add support in config to add CORS allowlist.

@maestroi maestroi changed the title [RPC/Webscoket] - Way to add CORS allowlist so we can allow all or specific website to directly connect. [RPC / Websocket] - Way to add CORS allowlist so we can allow all or specific website to directly connect. Feb 16, 2024
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

No branches or pull requests

1 participant