diff --git a/cmd/api/main.go b/cmd/api/main.go index 7972014..fcc11a9 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -94,7 +94,7 @@ func main() { router := chi.NewRouter() // Configure CORS - router.Use( cors.Handler(cors.Options{ + router.Use(cors.Handler(cors.Options{ AllowedOrigins: []string{fmt.Sprintf("http://localhost:%s", config.PORT), "http://localhost:5173", "https://textsender.com"}, AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},