CSP: Allow all sources for media

Otherwise, `video` tags and reveal background video
does not work

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-08-15 00:35:57 +02:00
parent 8973e85ba6
commit e6d167c63c
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -22,7 +22,8 @@ const defaultDirectives = {
],
styleSrc: [config.serverURL + '/build/', config.serverURL + '/css/', '\'unsafe-inline\'', 'https://github.githubassets.com'], // unsafe-inline is required for some libs, plus used in views
objectSrc: ['*'], // Chrome PDF viewer treats PDFs as objects :/
formAction: ['\'self\'']
formAction: ['\'self\''],
mediaSrc: ['*']
}
const cdnDirectives = {