This commit is contained in:
2026-08-13 21:01:49 +02:00
parent 593edf35fe
commit 58578fd010
5 changed files with 69 additions and 9 deletions
+1
View File
@@ -263,6 +263,7 @@ func (s *Server) Router() http.Handler {
AllowedOrigins: config.CORSAllowedOrigins(s.Config.WebOrigin),
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
AllowedHeaders: []string{"Accept", "Accept-Language", "Authorization", "Content-Type", "X-API-Key", "X-CSRF-Token", "X-Company-ID"},
ExposedHeaders: []string{"X-CSRF-Token", "X-Products-Exported"},
AllowCredentials: true,
MaxAge: 300,
}))