mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 23:53:06 +00:00
Devise needs to prepend forgery
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
# Prevent CSRF attacks by raising an exception.
|
# Prevent CSRF attacks by raising an exception.
|
||||||
# For APIs, you may want to use :null_session instead.
|
# For APIs, you may want to use :null_session instead.
|
||||||
protect_from_forgery with: :exception
|
protect_from_forgery prepend: true, with: :exception
|
||||||
|
|
||||||
after_action :set_csrf_cookie_for_ng
|
after_action :set_csrf_cookie_for_ng
|
||||||
|
|
||||||
def set_csrf_cookie_for_ng
|
def set_csrf_cookie_for_ng
|
||||||
|
|||||||
Reference in New Issue
Block a user