Skip to content

Commit 450262c

Browse files
committed
Allow embedding of video and audio tags
Adding mediaSrc to CSP so video and audio files can be embedded without problems. From a security perspective it should be fine to load audio and video data without introducing a high security issue. Only from a privacy perspective it allows another way to track users if there are data embedded. But it doesn't introduce any new attack vector as pictures are also allowed from everywhere. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
1 parent 57c47a6 commit 450262c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/csp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var defaultDirectives = {
1111
styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://assets-cdn.github.com'], // unsafe-inline is required for some libs, plus used in views
1212
fontSrc: ['\'self\'', 'https://public.slidesharecdn.com'],
1313
objectSrc: ['*'], // Chrome PDF viewer treats PDFs as objects :/
14+
mediaSrc: ['*'],
1415
childSrc: ['*'],
1516
connectSrc: ['*']
1617
}

0 commit comments

Comments
 (0)