Skip to content

Commit b8f835b

Browse files
committed
disable forgery protection for API
1 parent 227dbea commit b8f835b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/controllers/graphql_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
class GraphqlController < ApplicationController
55
include Graphql::AuthHelper
66

7+
# disable forgery protection for API
8+
skip_before_action :verify_authenticity_token
9+
710
# Executes the graphql request
811
def execute
912
query, variables, operation_name = read_query_params()

0 commit comments

Comments
 (0)