Merge pull request #12815 from surgeharb/master

fix: ApolloServer middleware CORS issue
This commit is contained in:
Jean-Sébastien Herbaux 2022-03-24 16:51:44 +01:00 committed by GitHub
commit 3bf25de33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,