You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to argue that go-ipfs should respect the configuration, and not return those headers anymore in this case.
On a side note, as you can see, the gateway return multiple Access-Control-Allow-Headers and Access-Control-Expose-Headers. My understanding is that while this is legal, it also might cause incompatibility issues and is generally less easy to deal with (at least in go). The API return instead the same headers only once, with a list of values.
The text was updated successfully, but these errors were encountered:
It create a conflict when you want to have a proxy in front of go-ipfs and handle CORS there. It's still possible to filter the CORS headers in the proxy, but it's rather awkward and brittle.
Version information:
Type: bug
Description:
The gateway is configured by default with
HTTPHeaders
being:When changed to:
The gateway still return the CORS headers, even though the config is gone:
I'd like to argue that go-ipfs should respect the configuration, and not return those headers anymore in this case.
On a side note, as you can see, the gateway return multiple
Access-Control-Allow-Headers
andAccess-Control-Expose-Headers
. My understanding is that while this is legal, it also might cause incompatibility issues and is generally less easy to deal with (at least in go). The API return instead the same headers only once, with a list of values.The text was updated successfully, but these errors were encountered: