-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add user-agent
to default list of Access-Control-Allow-Headers
#5138
Comments
In the meantime, it should be possible to update the headers using the config file. |
@bpierre Yes it possible. But this setting must be set on all gateways by default. Firefox block request by XMLHttpRequest to all public gateways without it. |
I've now merged ipfs/go-ipfs-config#15 so this will be added to the default config. However, due to how our config system works, it won't be applied to existing nodes so I'm not going to close this issue quite yet. We should either:
As one of our browser experts, thoughts @lidel? |
Ok with allowing for
As for the cleanup of defaults: tl;dr I think we should go with (2) AND while at it make sure we will be able to do some cleanup described below. I've looked at our headers recently and started tracking related issues at ipfs/in-web-browsers#132. As you can see in "go-ipfs v0.4.18 defaults" section of ipfs/in-web-browsers#132 (comment) we already have "hardcoded" defaults for headers such as The need to hardcode support for @Stebalien Note that |
fixes #5138 -- always add user-agent to access-control-allow-headers. fixes #5888 -- same with content-type. fixes #5892 -- extend user-provided headers instead of overriding them. License: MIT Signed-off-by: Steven Allen <[email protected]>
fixes #5138 -- always add user-agent to access-control-allow-headers. fixes #5888 -- same with content-type. fixes #5892 -- extend user-provided headers instead of overriding them. License: MIT Signed-off-by: Steven Allen <[email protected]>
Version information:
Mostly to do with public gateways, but issue persists on recent versions:
Type:
Enhancement
Description:
When sending requests across CORS, it looks like newer browsers are asking for
user-agent
inAccess-Control-Allow-Headers
, and failing fetches without it, e.g.:It would be really nice if
user-agent
was included by default in the CORS settings. Also, not sure if setting it twice is the same as a list, but it seems like it should be a list?See a similar API issue (Github's)
The text was updated successfully, but these errors were encountered: