diff options
Diffstat (limited to 'instance/production.py')
-rw-r--r-- | instance/production.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/instance/production.py b/instance/production.py index d0aebd7e..05827a56 100644 --- a/instance/production.py +++ b/instance/production.py @@ -26,6 +26,16 @@ SQLALCHEMY_DATABASE_URI = "postgres://{user}:{password}@{host}:{port}/{name}".fo name=DATABASE_NAME, **DB_CONFIG_DICT ) +# Security +CONTENT_SECURITY_POLICY = { + 'default-src': '\'self\'', + 'img-src': '*', + 'media-src': [ + 'youtube.com', + ], + 'script-src': '\'self\'' +} + # Crawler CRAWLING_METHOD = "default" DEFAULT_MAX_ERROR = 6 |