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
but if there is an extra / in the path, the headers are NOT sent:
$ curl -I localhost:8080/ipfs/QmVCYUK51Miz4jEjJxCq3bA6dfq5FXD6s2EYp6LjHQhGmh//meta
HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=utf-8
Location: /ipfs/QmVCYUK51Miz4jEjJxCq3bA6dfq5FXD6s2EYp6LjHQhGmh/meta
Date: Sat, 09 Oct 2021 00:13:09 GMT
This took hours for me to figure out why I couldn't fetch() from a localhost domain to the daemon running on localhost:8080 despite my configuration with CORS enabled.
The text was updated successfully, but these errors were encountered:
ghost
added
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
labels
Oct 9, 2021
Checklist
Installation method
ipfs-update or dist.ipfs.io
Version
Config
No response
Description
cors headers are properly sent for redirects to
ipfs.localhost:8080
:and cors headers are properly sent according to the configuration for properly-formatted paths:
but if there is an extra
/
in the path, the headers are NOT sent:This took hours for me to figure out why I couldn't
fetch()
from a localhost domain to the daemon running onlocalhost:8080
despite my configuration with CORS enabled.The text was updated successfully, but these errors were encountered: