~cedric/newspipe

1c1c96e6fd0ce41a413aec9a4fd7d490ae7d1ca5 — C├ędric Bonhomme 10 months ago 48c2453
allow insafe-inline
2 files changed, 16 insertions(+), 3 deletions(-)

M instance/production.py
M instance/sqlite.py
M instance/production.py => instance/production.py +8 -2
@@ 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

M instance/sqlite.py => instance/sqlite.py +8 -1
@@ 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