Add 'Namespace' header to allowed CORS headers (#1990)
This commit is contained in:
@@ -40,5 +40,5 @@ func SetHeaders(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
set(w, "Access-Control-Allow-Credentials", "true")
|
set(w, "Access-Control-Allow-Credentials", "true")
|
||||||
set(w, "Access-Control-Allow-Methods", "POST, PATCH, GET, OPTIONS, PUT, DELETE")
|
set(w, "Access-Control-Allow-Methods", "POST, PATCH, GET, OPTIONS, PUT, DELETE")
|
||||||
set(w, "Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization")
|
set(w, "Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, Namespace")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user