diff --git a/handler/playground.go b/handler/playground.go index df58825007e..d0ada8ca68f 100644 --- a/handler/playground.go +++ b/handler/playground.go @@ -30,6 +30,9 @@ var page = template.Must(template.New("graphiql").Parse(` GraphQLPlayground.init(root, { endpoint: location.protocol + '//' + location.host + '{{.endpoint}}', subscriptionsEndpoint: wsProto + '//' + location.host + '{{.endpoint }}', + settings: { + 'request.credentials': 'same-origin' + } }) })