aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/base.html
diff options
context:
space:
mode:
authorJames Taylor <28744867+user234683@users.noreply.github.com>2020-10-12 09:37:54 -0700
committerGitHub <noreply@github.com>2020-10-12 09:37:54 -0700
commit641af53e2ea0cb7ea398631d13c804d7ac1e0a8a (patch)
tree7dfecaadce3cc58ddcc86e2cd9d5ef762563e9ce /youtube/templates/base.html
parent2cfc6dec39ccdcc0c5fe2eea73f47b7040e51833 (diff)
parentfd253d9e07fa34e2a22d28d445839147daca9ee0 (diff)
downloadyt-local-641af53e2ea0cb7ea398631d13c804d7ac1e0a8a.tar.lz
yt-local-641af53e2ea0cb7ea398631d13c804d7ac1e0a8a.tar.xz
yt-local-641af53e2ea0cb7ea398631d13c804d7ac1e0a8a.zip
Merge pull request #24 from zrose584/optional_proxy_images
settings.py: add 'proxy_images'
Diffstat (limited to 'youtube/templates/base.html')
-rw-r--r--youtube/templates/base.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/templates/base.html b/youtube/templates/base.html
index 44aef20..f325f86 100644
--- a/youtube/templates/base.html
+++ b/youtube/templates/base.html
@@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<title>{{ page_title }}</title>
- <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; media-src 'self' https://*.googlevideo.com">
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline'; media-src 'self' https://*.googlevideo.com;
+ {{ "img-src https://*.googleusercontent.com https://*.ggpht.com https://*.ytimg.com;" if not settings.proxy_images else "" }}">
<link href="{{ theme_path }}" type="text/css" rel="stylesheet">
<link href="/youtube.com/static/shared.css" type="text/css" rel="stylesheet">
<link href="/youtube.com/static/comments.css" type="text/css" rel="stylesheet">