Prepend protect_from_forgery because this defaults to false now
This commit is contained in:
parent
b9d9a63739
commit
e076910b74
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
before_action :force_tablet_html
|
before_action :force_tablet_html
|
||||||
has_mobile_fu
|
has_mobile_fu
|
||||||
protect_from_forgery except: :receive, with: :exception
|
protect_from_forgery except: :receive, with: :exception, prepend: true
|
||||||
|
|
||||||
rescue_from ActionController::InvalidAuthenticityToken do
|
rescue_from ActionController::InvalidAuthenticityToken do
|
||||||
if user_signed_in?
|
if user_signed_in?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue