You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// it should explicitly deny OPTIONS requests if CORS is disabled, to avoid the following GET/POST handler to be called by the OPTIONS request
82
+
// it should explicitly deny OPTIONS requests if CORS handler is executed, to avoid the following GET/POST handler to be incorrectly called by the OPTIONS request
83
83
w.WriteHeader(http.StatusMethodNotAllowed)
84
84
}
85
85
return
86
86
}
87
+
// for non-OPTIONS requests, call the CORS handler to add some related headers like "Vary"
0 commit comments