mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +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
|
||||
server.getMiddleware({ path }),
|
||||
server.getMiddleware({
|
||||
path,
|
||||
cors: serverConfig.cors,
|
||||
bodyParserConfig: serverConfig.bodyParserConfig,
|
||||
}),
|
||||
],
|
||||
config: {
|
||||
auth: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user