Can't verify CSRF token authenticity in ruby on rails
class ApplicationController < ActionController::Base
protect_from_forgery with: :null_session,
if: Proc.new { |c| c.request.format =~ %r{application/json} }
end
Now it handles additional content types terms such as:application/json; charset=utf-8
Comments
Post a Comment