Skip to content

Commit 8438b36

Browse files
committed
cors ok but no credentials
1 parent c16a965 commit 8438b36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deployment/config/public-graphql-api-gateway/gateway.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,8 @@ export const gatewayConfig = defineConfig({
151151
},
152152
maxTokens: 1_000,
153153
maxDepth: 20,
154+
cors: {
155+
origin: '*', // allow all origins
156+
credentials: false, // do not allow credentials in cross-origin requests
157+
},
154158
});

0 commit comments

Comments
 (0)