Fix manifest.json not loading
Refused to load manifest from 'https://xxxxx.xxx/static/img/favicon/manifest.json' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'manifest-src' was not explicitly set, so 'default-src' is used as a fallback.
This commit is contained in:
parent
d9dcbfccb9
commit
621a983061
|
@ -41,6 +41,7 @@ app.config['BANG_FILE'] = os.path.join(
|
|||
app.config['BANG_PATH'],
|
||||
'bangs.json')
|
||||
app.config['CSP'] = 'default-src \'none\';' \
|
||||
'manifest-src \'self\';' \
|
||||
'img-src \'self\';' \
|
||||
'style-src \'self\' \'unsafe-inline\';' \
|
||||
'script-src \'self\';' \
|
||||
|
|
Loading…
Reference in New Issue
Block a user