This commit is contained in:
parent
d4035cbdca
commit
c160a34260
|
@ -47,7 +47,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method == http.MethodOptions {
|
if r.Method == http.MethodOptions {
|
||||||
w.Header().Add("Access-Control-Allow-Origin", "*")
|
w.Header().Add("Access-Control-Allow-Origin", "*")
|
||||||
w.Header().Add("Access-Control-Allow-Methods", "GET, POST")
|
w.Header().Add("Access-Control-Allow-Methods", "GET, POST")
|
||||||
w.Header().Add("Access-Control-Allow-Headers", "Authorization")
|
w.Header().Add("Access-Control-Allow-Headers", "Authorization, Cache-Control")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user