Disable csrf to debug
This commit is contained in:
parent
47d63306ba
commit
2fc656c053
@ -3,6 +3,7 @@ class ApplicationController < ActionController::Base
|
|||||||
# For APIs, you may want to use :null_session instead.
|
# For APIs, you may want to use :null_session instead.
|
||||||
# protect_from_forgery with: :exception
|
# protect_from_forgery with: :exception
|
||||||
protect_from_forgery unless: -> { request.format.json? }
|
protect_from_forgery unless: -> { request.format.json? }
|
||||||
|
skip_before_action :verify_authenticity_token
|
||||||
after_action :flash_to_http_header
|
after_action :flash_to_http_header
|
||||||
|
|
||||||
if (Rails.env.development? || Rails.env.test?)
|
if (Rails.env.development? || Rails.env.test?)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user