goxcors
goxcors copied to clipboard
Does not handle content encoding header
Access to fetch at 'https://goxcors.appspot.com/cors?method=POST&url=XXXXredactedXXXX' from origin 'https://xxx.xxx.xxx' has been blocked by CORS policy: Request header field content-encoding is not allowed by Access-Control-Allow-Headers in preflight response.
Solution 1: Remove w.Header().Set("Access-Control-Allow-Headers", "X-Requested-With")
Solution 2: Modify w.Header().Set("Access-Control-Allow-Headers", "X-Requested-With") in w.Header().Set("Access-Control-Allow-Headers", "*")