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 ccfd300 commit ba7af37Copy full SHA for ba7af37
next.config.js
@@ -62,6 +62,27 @@ export default withLess(
62
NEXT_PUBLIC_GA_ID:
63
process.env.NODE_ENV === "production" ? "UA-44373548-16" : "",
64
},
65
+ headers: async () => {
66
+ return [
67
+ {
68
+ source: "/graphql",
69
+ headers: [
70
71
+ key: "Access-Control-Allow-Origin",
72
+ value: "*",
73
+ },
74
75
+ key: "Access-Control-Allow-Methods",
76
+ value: "GET, POST, OPTIONS",
77
78
79
+ key: "Access-Control-Allow-Headers",
80
+ value: "Content-Type",
81
82
+ ],
83
84
+ ]
85
86
trailingSlash: true,
87
// Only for local development, skip 200 statusCode due following error:
88
//
0 commit comments