kopia lustrzana https://github.com/bugout-dev/moonstream
Fixed nodebalancer cors post support
rodzic
2da576ad1c
commit
7663e67b77
|
@ -365,7 +365,7 @@ func corsMiddleware(next http.Handler) http.Handler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if r.Method == "OPTIONS" {
|
if r.Method == "OPTIONS" {
|
||||||
w.Header().Set("Access-Control-Allow-Methods", "GET,OPTIONS")
|
w.Header().Set("Access-Control-Allow-Methods", "GET,POST,OPTIONS")
|
||||||
// Credentials are cookies, authorization headers, or TLS client certificates
|
// Credentials are cookies, authorization headers, or TLS client certificates
|
||||||
w.Header().Set("Access-Control-Allow-Credentials", "true")
|
w.Header().Set("Access-Control-Allow-Credentials", "true")
|
||||||
w.Header().Set("Access-Control-Allow-Headers", "Authorization")
|
w.Header().Set("Access-Control-Allow-Headers", "Authorization")
|
||||||
|
|
Ładowanie…
Reference in New Issue