Disable csrf to debug

This commit is contained in:
Jesse C. Fisher 2023-09-18 18:01:45 +00:00
parent 7348a5a1bf
commit dd8286791b

View File

@ -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?)