mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
stop logging csrf errors for API
This commit is contained in:
parent
b366ec7f15
commit
2535e22151
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ if Rails.env.production?
|
|||
/^ActionController::UnknownFormat/,
|
||||
|
||||
# suppress trackback spam bots
|
||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ })
|
||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),
|
||||
|
||||
# API calls, TODO fix this in rails
|
||||
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /api_key/ })
|
||||
]
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue