aboutsummaryrefslogtreecommitdiff
path: root/instance/sqlite.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-22 14:20:49 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-22 14:20:49 +0100
commit1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5 (patch)
tree345a55fee57ef35ad787f07691076a135ad17718 /instance/sqlite.py
parentRemoved some inline scripts. (diff)
downloadnewspipe-1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5.tar.gz
newspipe-1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5.tar.bz2
newspipe-1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5.zip
allow insafe-inline
Diffstat (limited to 'instance/sqlite.py')
-rw-r--r--instance/sqlite.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/instance/sqlite.py b/instance/sqlite.py
index cec46f48..0407ca1b 100644
--- a/instance/sqlite.py
+++ b/instance/sqlite.py
@@ -24,7 +24,14 @@ CONTENT_SECURITY_POLICY = {
'media-src': [
'youtube.com',
],
- 'script-src': '\'self\''
+ 'script-src': [
+ '\'self\'',
+ '\'unsafe-inline\'',
+ ],
+ 'style-src': [
+ '\'self\'',
+ '\'unsafe-inline\'',
+ ]
}
# Crawler
bgstack15