Try other headers
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-09-08 20:26:19 +02:00
parent b38f2f526f
commit 453b695901
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -47,7 +47,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodOptions {
w.Header().Add("Access-Control-Allow-Origin", "*")
w.Header().Add("Access-Control-Allow-Methods", "GET, POST")
w.Header().Add("Access-Control-Allow-Headers", "authorization,cache-control")
w.Header().Add("Access-Control-Allow-Headers", "Authorization, Cache-Control")
return
}