File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/generators/graphql/templates
spec/integration/rails/generators/graphql Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ class GraphqlController < ApplicationController
2
2
# If accessing from outside this domain, nullify the session
3
3
# This allows for outside API access while preventing CSRF attacks,
4
4
# but you 'll have to authenticate your user separately
5
- protect_from_forgery with: :null_session
5
+ # protect_from_forgery with: :null_session
6
6
7
7
def execute
8
8
variables = ensure_hash(params[:variables])
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ class GraphqlController < ApplicationController
179
179
# If accessing from outside this domain, nullify the session
180
180
# This allows for outside API access while preventing CSRF attacks,
181
181
# but you'll have to authenticate your user separately
182
- protect_from_forgery with: :null_session
182
+ # protect_from_forgery with: :null_session
183
183
184
184
def execute
185
185
variables = ensure_hash(params[:variables])
You can’t perform that action at this time.
0 commit comments