diff --git a/main.go b/main.go index 58e1944a..5aa7816b 100644 --- a/main.go +++ b/main.go @@ -222,11 +222,13 @@ func main() { c := cors.New(cors.Options{ AllowedOrigins: []string{*flCorsOrigin}, AllowCredentials: true, + AllowedMethods: []string{"GET", "POST", "PATCH", "DELETE"}, }) corsHandler := c.Handler(mux) http.Handle("/", corsHandler) } else { + logger.Log("warn", "CORS header is disabled") http.Handle("/", mux) }