Get rid of CSRF errors
This commit is contained in:
parent
8dd4aa145c
commit
d6c06eb547
|
@ -20,14 +20,9 @@ if Rails.env.production?
|
||||||
#
|
#
|
||||||
/(?m).*?Line: (?:\D|0).*?Column: (?:\D|0)/,
|
/(?m).*?Line: (?:\D|0).*?Column: (?:\D|0)/,
|
||||||
|
|
||||||
# suppress trackback spam bots
|
# CSRF errors are not providing enough data
|
||||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),
|
# suppress unconditionally for now
|
||||||
# suppress trackback spam bots submitting to random URLs
|
/^Can't verify CSRF token authenticity$/
|
||||||
# test for the presence of these params: url, title, excerpt, blog_name
|
|
||||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { params: { url: /./, title: /./, excerpt: /./, blog_name: /./} }),
|
|
||||||
|
|
||||||
# API calls, TODO fix this in rails
|
|
||||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ })
|
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue