1
0
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-22 11:04:59 +01:00
mastodon/config/initializers/suppress_csrf_warnings.rb
Patrick Figel 537d2939b1 Suppress CSRF token warnings ()
CSRF token checking was enabled for API controllers in ,
producing "Can't verify CSRF token authenticity" log spam. This
disables logging of failed CSRF checks.

This also changes the protection strategy for
PushSubscriptionsController to use exceptions, making it consistent
with other controllers that use sessions.
2018-01-15 06:51:23 +01:00

4 lines
90 B
Ruby

# frozen_string_literal: true
ActionController::Base.log_warning_on_csrf_failure = false