fix: route cors origin

This commit is contained in:
Jonas Kaninda
2024-10-29 10:35:31 +01:00
parent 9f14c2fa08
commit ac6cba246a
3 changed files with 27 additions and 22 deletions

View File

@@ -40,8 +40,6 @@ func (gatewayServer GatewayServer) Initialize() *mux.Router {
// Add rate limit middleware to all routes, if defined
r.Use(limiter.RateLimitMiddleware())
}
// Add the errorInterceptor middleware
//r.Use(middleware.ErrorInterceptor)
for _, route := range gateway.Routes {
if route.Path != "" {
blM := middleware.BlockListMiddleware{