This commit is contained in:
Виталий Туров 2025-03-22 10:52:32 +03:00
parent abd0575d71
commit a04fc956bd

View File

@ -31,7 +31,7 @@ func main() {
corsMiddleware := handlers.CORS(
handlers.AllowedOrigins([]string{"*"}),
handlers.AllowedMethods([]string{"GET", "POST", "OPTIONS"}),
handlers.AllowedMethods([]string{"GET", "POST", "OPTIONS", "PATCH"}),
handlers.AllowedHeaders([]string{"Content-Type", "Authorization"}),
)