mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
stop logging csrf errors for API
This commit is contained in:
parent
b366ec7f15
commit
2535e22151
@ -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…
Reference in New Issue
Block a user