Configure CSRF protection with exceptions

rails 4 introduced different strategies, but we never configured one
so it would default to a null session.
This commit is contained in:
Thibault Jouan 2015-04-30 11:43:22 +00:00
parent b13efc5a4c
commit 3e5c29b635

View File

@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery
protect_from_forgery with: :exception
before_filter :authenticate!