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 https://github.com/ipfs/go-ipfs/issues/1532 License: MIT Signed-off-by:Juan Batiz-Benet <juan@benet.ai>
正在显示
请
注册
或者
登录
后发表评论