fix
This commit is contained in:
@@ -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,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user