Merge branch 'master' into update-database

This commit is contained in:
Ulf Gebhardt 2023-05-22 20:29:52 +02:00 committed by GitHub
commit 684314d0e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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