Skip to content

Commit fa4494f

Browse files
authored
Merge pull request #470 from artetecha/master
Make 'credentials' configurable for GQL requests
2 parents c5829e6 + d465b64 commit fa4494f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/graphql-playground-react/src/components/MiddlewareApp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const defaultSettings = `{
6767
"general.betaUpdates": false,
6868
"editor.theme": "dark",
6969
"editor.reuseHeaders": true,
70+
"request.credentials": "omit",
7071
"tracing.hideTracingResponse": true
7172
}`
7273

packages/graphql-playground-react/src/components/Playground.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,7 @@ export class Playground extends React.PureComponent<Props & DocsState, State> {
10161016
// tslint:disable-lin
10171017
method: 'post',
10181018
headers,
1019-
// TODO enable
1020-
// credentials: 'include',
1019+
credentials: this.props.settings["request.credentials"],
10211020
body: JSON.stringify(graphQLParams),
10221021
}).then(response => {
10231022
if (typeof this.props.onSuccess === 'function') {

0 commit comments

Comments
 (0)