application_controller.rb 138 B

1234
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery with: :exception , :unless => -> { request.format.json? }
  3. end