CORS headers not sent for some redirects #8501
Labels
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
topic/gateway
Topic gateway
Milestone
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: