Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix API handler to respect referer + exit on CORS
this commit makes the API handler short circuit the request if the CORS headers say its not allowed. (the CORS handler only sets the headers, but does not short-circuit) It also makes the handler respect the referer again. See security discussion at ipfs/kubo#1532 License: MIT Signed-off-by: Juan Batiz-Benet <juan@benet.ai> This commit was moved from ipfs/kubo@d5f94be
- Loading branch information