diff --git a/internal/server/router.go b/internal/server/router.go index 870b904..f6c1e63 100644 --- a/internal/server/router.go +++ b/internal/server/router.go @@ -27,6 +27,9 @@ func NewRouter() { r.Use(httprate.LimitByRealIP(32, time.Minute)) r.Use(cors.Handler(cors.Options{ AllowedOrigins: []string{"https://axolotlmaid.com"}, + AllowedMethods: []string{"GET", "PATCH"}, + AllowedHeaders: []string{"Content-Type"}, + MaxAge: 300, })) r.Get("/", func(w http.ResponseWriter, r *http.Request) {