mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-16 14:42:26 +00:00
CSP: Allow styles from /css/
Reveal.js styles are hosted there Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1c0af5f75d
commit
1642242078
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ const defaultDirectives = {
|
|||
'https://www.slideshare.net/api/oembed/2',
|
||||
'\'unsafe-inline\'' // this is ignored by browsers supporting nonces/hashes
|
||||
],
|
||||
styleSrc: [config.serverURL + '/build/', '\'unsafe-inline\'', 'https://github.githubassets.com'], // unsafe-inline is required for some libs, plus used in views
|
||||
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\'']
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue