fix: pass cors and bodyParserConfig for apollo mw

This commit is contained in:
Serge Harb 2022-03-11 20:17:51 +01:00
parent 5a845afdad
commit 90e0cc44ee

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,