mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Merge pull request #13838 from strapi/fix/graphql-playground
Fix/graphql playground
This commit is contained in:
commit
cf6c08de92
3
packages/plugins/graphql/server/bootstrap.js
vendored
3
packages/plugins/graphql/server/bootstrap.js
vendored
@ -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);
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user