Skip to content

Commit 523e483

Browse files
authored
Allow data: as src of img and video sources
1 parent 8d4fb11 commit 523e483

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
@@ -12,6 +12,7 @@
1212
'Content-Security-Policy':
1313
"; ".join([
1414
f"default-src 'self' https: {CORS_ORIGIN}",
15+
f"img-src 'self' data: {CORS_ORIGIN}",
1516
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}",

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)