mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #6303 from Ocelot-Social-Community/fix-graphiql-helmet
fix(backend): helmet + graphiql
This commit is contained in:
commit
fef12f51c0
@ -82,7 +82,11 @@ const createServer = (options) => {
|
|||||||
const app = express()
|
const app = express()
|
||||||
|
|
||||||
app.set('driver', driver)
|
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('/.well-known/', webfinger())
|
||||||
app.use(express.static('public'))
|
app.use(express.static('public'))
|
||||||
app.use(bodyParser.json({ limit: '10mb' }))
|
app.use(bodyParser.json({ limit: '10mb' }))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user