Tengo un servidor node express con csrf lusca y quiero habilitar csrf también para graphql y graphiql, pero ¿cómo hacerlo?
const csrf = require('lusca').csrf() const graphqlExpress = require('graphql-server-express').graphqlExpress const graphiqlExpress = require('graphql-server-express').graphiqlExpress server.use((req, res, next) => { csrf(req, res, next) } }) server.use('/graphql', (req, res, next) => { graphqlExpress( () => { const query = req.query.query || req.body.query; return { schema, context: Object.assign({ user }, req.context), debug: false, formatError(e) { console.log(e) }, } })(req, res, next) }) server.use('/graphiql', graphiqlExpress({ endpointURL: '/graphql', }))