diff --git a/x/auth/middleware.go b/x/auth/middleware.go index 63bc3361..f78f233c 100644 --- a/x/auth/middleware.go +++ b/x/auth/middleware.go @@ -523,6 +523,11 @@ func (s *service) RateLimiter(configMap core.RateLimitConfigMap) echo.Middleware ctx := c.Request().Context() path := resolvePath(c) + // Skip rate limiting for OPTIONS requests + if c.Request().Method == "OPTIONS" { + return next(c) + } + config, ok := configMap[path] if !ok { config = configMap["DEFAULT"]