Archived
2

another CSP fix

This commit is contained in:
VLE2FE 2020-08-09 17:25:32 +02:00
parent 501cd1907e
commit aa1f79168b

View File

@ -56,7 +56,7 @@ app.use('/api-doc', helmet.contentSecurityPolicy({
}
}));
// special CSP header for the intro-presentation
app.use('/static/intro-presentation/$|index.html', helmet.contentSecurityPolicy({
app.use(/\/static\/intro-presentation\/(index.html)?/, helmet.contentSecurityPolicy({
...defaultHeaderConfig,
directives: {
defaultSrc: [`'none'`],