-
fix API handler to respect referer + exit on CORS · d5f94be4
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 https://github.com/ipfs/go-ipfs/issues/1532 License: MIT Signed-off-by:
Juan Batiz-Benet <juan@benet.ai>
由 Juan Batiz-Benet 提交于d5f94be4
×