good morning!!!!

Skip to content
Snippets Groups Projects
Commit 48c022de authored by a's avatar a
Browse files

nvm

parent 4a1fccf0
No related branches found
No related tags found
No related merge requests found
......@@ -273,11 +273,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
return
}
if r.Method == http.MethodOptions {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization")
}
if code, err := validateRequest(r); err != nil {
http.Error(w, err.Error(), code)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment