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