diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2021-10-15 15:07:38 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2021-10-15 15:07:38 +0200 |
commit | 6d71916fec58c96f1769a92e0ea8f42343497c4e (patch) | |
tree | a1087da6d6c413ce9b9de83ecafdfe2a3d4ff082 | |
parent | chg: [documentation] Updated installation instructions. (diff) | |
download | newspipe-6d71916fec58c96f1769a92e0ea8f42343497c4e.tar.gz newspipe-6d71916fec58c96f1769a92e0ea8f42343497c4e.tar.bz2 newspipe-6d71916fec58c96f1769a92e0ea8f42343497c4e.zip |
chg: updated default configuration for SQLite.
-rw-r--r-- | instance/sqlite.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/instance/sqlite.py b/instance/sqlite.py index 43cdc2af..8c2b613c 100644 --- a/instance/sqlite.py +++ b/instance/sqlite.py @@ -19,6 +19,19 @@ SQLALCHEMY_DATABASE_URI = "sqlite:///newspipe.db" # Security CONTENT_SECURITY_POLICY = { + 'default-src': '\'self\'', + 'img-src': '* data:', + 'media-src': [ + 'youtube.com', + ], + 'script-src': [ + '\'self\'', + '\'unsafe-inline\'', + ], + 'style-src': [ + '\'self\'', + '\'unsafe-inline\'', + ] } # Crawler |