Skip to content

Commit 181e673

Browse files
committed
Do nothing if forgery protection enabled in ApplicationController
1 parent 3b79f93 commit 181e673

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
module GraphqlDevise
22
class ApplicationController < DeviseTokenAuth::ApplicationController
3+
private
4+
5+
def verify_authenticity_token
6+
end
37
end
48
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
class ApplicationController < ActionController::Base
2+
protect_from_forgery with: :exception
23
end

0 commit comments

Comments
 (0)