mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 08:38:09 +00:00
Merge pull request #12815 from surgeharb/master
fix: ApolloServer middleware CORS issue
This commit is contained in:
commit
3bf25de33e
6
packages/plugins/graphql/server/bootstrap.js
vendored
6
packages/plugins/graphql/server/bootstrap.js
vendored
@ -114,7 +114,11 @@ module.exports = async ({ strapi }) => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Apollo Server
|
// Apollo Server
|
||||||
server.getMiddleware({ path }),
|
server.getMiddleware({
|
||||||
|
path,
|
||||||
|
cors: serverConfig.cors,
|
||||||
|
bodyParserConfig: serverConfig.bodyParserConfig,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
config: {
|
config: {
|
||||||
auth: false,
|
auth: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user