Browse Source

fix(core): Configure GraphQL Playground to include credentials

Closes #107
Michael Bromley 6 years ago
parent
commit
442973058f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/core/src/api/config/configure-graphql-module.ts

+ 5 - 1
packages/core/src/api/config/configure-graphql-module.ts

@@ -104,7 +104,11 @@ async function createGraphQLOptions(
         uploads: {
             maxFileSize: configService.assetOptions.uploadMaxFileSize,
         },
-        playground: true,
+        playground: {
+            settings: {
+                'request.credentials': 'include',
+            } as any,
+        },
         debug: true,
         context: (req: any) => req,
         extensions: [