goxcors icon indicating copy to clipboard operation
goxcors copied to clipboard

Does not handle content encoding header

Open Zibri opened this issue 6 years ago • 1 comments

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.

Zibri avatar Jul 14 '19 11:07 Zibri

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", "*")

Zibri avatar Jul 14 '19 11:07 Zibri