This commit is contained in:
Ulf Gebhardt 2023-05-15 23:17:59 +02:00
parent aadf093402
commit fedba26525
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -84,7 +84,9 @@ const createServer = (options) => {
app.set('driver', driver)
// 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(
helmet(CONFIG.DEBUG && { contentSecurityPolicy: false, crossOriginEmbedderPolicy: false }),
)
app.use('/.well-known/', webfinger())
app.use(express.static('public'))
app.use(bodyParser.json({ limit: '10mb' }))