This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
闭社主体
https://thu.closed.social
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6541
Commits
4
Branches
567 MiB
Tree:
dfa60cb0a8
closed-social-glitch-2
closed-social-v3
cs+3.4.6
master
v0.1.2
v0.1.1
v0.1.0
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from 'dfa60cb0a8'
${ noResults }
mastodon
/
config
/
initializers
/
suppress_csrf_warnings.rb
3 lines
90 B
Raw
Normal View
History
Suppress CSRF token warnings (#6240) CSRF token checking was enabled for API controllers in #6223, 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.
6 years ago
# frozen_string_literal: true
ActionController
::
Base
.
log_warning_on_csrf_failure
=
false