We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70c1f1 commit e41da61Copy full SHA for e41da61
1 file changed
src/index.ts
@@ -90,18 +90,18 @@ export const yoga = createYoga<Env>({
90
: `{}`,
91
};
92
},
93
- cors: {
94
- origin: ["*"],
95
- credentials: true,
96
- methods: ["POST", "GET", "OPTIONS"],
97
- },
+ // cors: {
+ // origin: ["*"],
+ // credentials: true,
+ // methods: ["POST", "GET", "OPTIONS"],
+ // },
98
schema,
99
logging: "debug",
100
plugins: [
101
- APP_ENV === "production" &&
102
- useCSRFPrevention({
103
- requestHeaders: ["x-graphql-csrf-token"],
104
- }),
+ // APP_ENV === "production" &&
+ // useCSRFPrevention({
+ // requestHeaders: ["x-graphql-csrf-token"],
+ // }),
105
APP_ENV === "production" && useMaskedErrors(),
106
useImmediateIntrospection(),
107
(APP_ENV === "production" || APP_ENV === "staging") &&
0 commit comments