diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-22 14:20:49 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-22 14:20:49 +0100 |
commit | 1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5 (patch) | |
tree | 345a55fee57ef35ad787f07691076a135ad17718 /instance/production.py | |
parent | Removed some inline scripts. (diff) | |
download | newspipe-1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5.tar.gz newspipe-1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5.tar.bz2 newspipe-1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5.zip |
allow insafe-inline
Diffstat (limited to 'instance/production.py')
-rw-r--r-- | instance/production.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/instance/production.py b/instance/production.py index 05827a56..90f27c1c 100644 --- a/instance/production.py +++ b/instance/production.py @@ -33,9 +33,15 @@ CONTENT_SECURITY_POLICY = { 'media-src': [ 'youtube.com', ], - 'script-src': '\'self\'' + 'script-src': [ + '\'self\'', + '\'unsafe-inline\'', + ], + 'style-src': [ + '\'self\'', + '\'unsafe-inline\'', + ] } - # Crawler CRAWLING_METHOD = "default" DEFAULT_MAX_ERROR = 6 |