Merge pull request #13838 from strapi/fix/graphql-playground

Fix/graphql playground
This commit is contained in:
Bassel Kanso 2022-07-28 15:53:04 +03:00 committed by GitHub
commit cf6c08de92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,9 @@ module.exports = async ({ strapi }) => {
},
};
// allow graphql playground to load without authentication
if (ctx.request.method === 'GET') return next();
return strapi.auth.authenticate(ctx, next);
},