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

"Access-Control-Allow-Origin" header missing in JSON-RPC response #1496

Open
Iznogood1 opened this issue Jul 24, 2022 · 0 comments
Open

"Access-Control-Allow-Origin" header missing in JSON-RPC response #1496

Iznogood1 opened this issue Jul 24, 2022 · 0 comments

Comments

@Iznogood1
Copy link

Feature request

Is it possible to set the "Access-Control-Allow-Origin" header in JSON-RPC response?

What problem does this feature solve?

CORS request to json-rpc from a web-app is blocked because the current header is
{
"content-length": "xxx",
"content-type": "application/json",
"date": "Sun, 24 Jul 2022 08:34:59 UTC",
"server": "Hyperion http-Webserver"
}
Adding "Access-Control-Allow-Origin: *" would allow CORS request.

What does the proposed API look like?

Just update the header to
{
"content-length": "xxx",
"content-type": "application/json",
"date": "Sun, 24 Jul 2022 08:34:59 UTC",
"server": "Hyperion http-Webserver"
"Access-Control-Allow-Origin": "*"
}

How should this be implemented in your opinion?

I guess it is just one line to add in the code

Are you willing to work on this yourself?

Unfortunately I am not skilled enough...

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