mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
8973e85ba6
commit
e6d167c63c
1 changed files with 2 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue