We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a0567a commit 08e7ee0Copy full SHA for 08e7ee0
CHANGELOG.md
@@ -3,6 +3,7 @@
3
## UNRELEASED
4
5
* Handle multi-processes service (cluster mode in Puma) - See [#45](https://github.com/julienbourdeau/debugbar/pull/45)
6
+* Ignore OPTIONS requests - See [xx](https://github.com/julienbourdeau/debugbar/commit/xx)
7
8
## v0.3.3 - 2024-06-15
9
lib/debugbar/config.rb
@@ -33,7 +33,9 @@ def ignore_request?(env)
33
if ignore_request.is_a? Proc
34
ignore_request.call(env)
35
else
36
- [Debugbar.config.prefix, "/assets"].any? { |s| env['PATH_INFO'].start_with? s }
+ [Debugbar.config.prefix, "/assets"].any? do |s|
37
+ env['PATH_INFO'].start_with? s
38
+ end || env['REQUEST_METHOD'] == "OPTIONS"
39
end
40
41
0 commit comments