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
After setting ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000"]' requests made via port 5001 in a browser are no longer allowed.
This is only really noticeable in the WebUI (any browser really) as the browser sets a Referer header on every request.
If this were to be handled, then every config update has to propagate to the daemon immediately/when needed. This is possible when the config param is read from disk/cache every time the value is called, which could be a huge perf hit for large number of requests. I don't think adding the complexity is worth it here.
I think we can close this as 'wont fix'. Or at least, not something we have a convincing use-case for at this time. The complexity of implementing this would be pretty high.
After setting
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000"]'
requests made via port5001
in a browser are no longer allowed.This is only really noticeable in the WebUI (any browser really) as the browser sets a
Referer
header on every request.All looks good
Update Origin
Config changes don't appears to take effect yet
Restarted IPFS Daemon
With port 3000
I'd suspect that even with an
Access-Control-Allow-Origin
requests made on port 5001 should still work.The text was updated successfully, but these errors were encountered: