diff --git a/packages/graphql-playground-react/src/components/MiddlewareApp.tsx b/packages/graphql-playground-react/src/components/MiddlewareApp.tsx index 8d3325955..eddb15663 100644 --- a/packages/graphql-playground-react/src/components/MiddlewareApp.tsx +++ b/packages/graphql-playground-react/src/components/MiddlewareApp.tsx @@ -67,6 +67,7 @@ const defaultSettings = `{ "general.betaUpdates": false, "editor.theme": "dark", "editor.reuseHeaders": true, + "request.credentials": "omit", "tracing.hideTracingResponse": true }` diff --git a/packages/graphql-playground-react/src/components/Playground.tsx b/packages/graphql-playground-react/src/components/Playground.tsx index 0cefe3abe..816356539 100644 --- a/packages/graphql-playground-react/src/components/Playground.tsx +++ b/packages/graphql-playground-react/src/components/Playground.tsx @@ -1016,8 +1016,7 @@ export class Playground extends React.PureComponent { // tslint:disable-lin method: 'post', headers, - // TODO enable - // credentials: 'include', + credentials: this.props.settings["request.credentials"], body: JSON.stringify(graphQLParams), }).then(response => { if (typeof this.props.onSuccess === 'function') {