mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Disable the default CSRF protection.
This was added in Rails 5.2 defaults, but we upgraded from 5.1 defaults to 6.1, so we didn't notice until now. closes #8374
This commit is contained in:
committed by
Benjamin Neff
parent
3cf84c838f
commit
428c97d089
@@ -39,6 +39,11 @@ module Diaspora
|
||||
# Enable escaping HTML in JSON.
|
||||
config.active_support.escape_html_entities_in_json = true
|
||||
|
||||
# We specify CSRF protection manually in ApplicationController with
|
||||
# protect_from_forgery - having it enabled anywhere by default breaks
|
||||
# federation.
|
||||
config.action_controller.default_protect_from_forgery = false
|
||||
|
||||
# Enable the asset pipeline
|
||||
config.assets.enabled = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user