Skip to content

Commit 78e24dc

Browse files
authored
Merge pull request #65 from kostrykin/kostrykin-patch-2
Allow `data:`-based `src` for `video` sources
2 parents 9b9b494 + 523e483 commit 78e24dc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jupyter_lab_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"; ".join([
1414
f"default-src 'self' https: {CORS_ORIGIN}",
1515
f"img-src 'self' data: {CORS_ORIGIN}",
16+
f"media-src 'self' data: {CORS_ORIGIN}",
1617
f"connect-src 'self' ws://{CORS_ORIGIN_HOSTNAME}",
1718
f"style-src 'unsafe-inline' 'self' {CORS_ORIGIN}",
1819
f"script-src https: 'unsafe-inline' 'unsafe-eval' 'self' {CORS_ORIGIN}"

jupyter_notebook_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"; ".join([
1414
f"default-src 'self' https: {CORS_ORIGIN}",
1515
f"img-src 'self' data: {CORS_ORIGIN}",
16+
f"media-src 'self' data: {CORS_ORIGIN}",
1617
f"connect-src 'self' ws://{CORS_ORIGIN_HOSTNAME}",
1718
f"style-src 'unsafe-inline' 'self' {CORS_ORIGIN}",
1819
f"script-src https: 'unsafe-inline' 'unsafe-eval' 'self' {CORS_ORIGIN}"

0 commit comments

Comments
 (0)