diff --git a/ratelimit/ratelimit.go b/ratelimit/ratelimit.go index c70c1e0e6e..c0c4f99c3b 100644 --- a/ratelimit/ratelimit.go +++ b/ratelimit/ratelimit.go @@ -175,6 +175,9 @@ func (r *responseWriterDelegator) Status() int { } var DefaultRequestFilter = func(req *http.Request) bool { + if req.Method == http.MethodOptions { + return false + } if req.URL == nil || !strings.HasPrefix(req.URL.Path, "/api") || strings.HasPrefix(req.URL.Path, "/api/i/") || strings.HasPrefix(req.URL.Path, "/api/v1/docs/") || strings.HasPrefix(req.URL.Path, "/api/v2/docs/") { return false }