mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
helmet exception for graphiql
This commit is contained in:
parent
4cb110b6ce
commit
aadf093402
@ -82,7 +82,9 @@ const createServer = (options) => {
|
||||
const app = express()
|
||||
|
||||
app.set('driver', driver)
|
||||
app.use(helmet())
|
||||
// TODO: this exception is required for the graphql playground, since the playground loads external resources
|
||||
// See: https://github.com/graphql/graphql-playground/issues/1283
|
||||
app.use(helmet(CONFIG.DEBUG && { contentSecurityPolicy: false, crossOriginEmbedderPolicy: false }))
|
||||
app.use('/.well-known/', webfinger())
|
||||
app.use(express.static('public'))
|
||||
app.use(bodyParser.json({ limit: '10mb' }))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user