unsafe-inline fix
All checks were successful
Build & Push / Build & Push image (push) Successful in 39s
All checks were successful
Build & Push / Build & Push image (push) Successful in 39s
This commit is contained in:
@@ -91,7 +91,7 @@ def create_app():
|
||||
# unsafe-inline is uitgeschakeld voor scripts — gebruik {{ csp_nonce() }} in <script> tags
|
||||
csp = {
|
||||
'default-src': ["'self'"],
|
||||
'script-src': ["'self'", 'cdnjs.cloudflare.com'], # nonce wordt auto toegevoegd
|
||||
'script-src': ["'self'", 'cdnjs.cloudflare.com', "'unsafe-inline'"], # unsafe-inline wordt genegeerd door browsers die nonce ondersteunen
|
||||
'style-src': ["'self'", "'unsafe-inline'"], # inline styles in templates (aanvaardbaar)
|
||||
'img-src': ["'self'", 'data:'],
|
||||
'font-src': ["'self'"],
|
||||
|
||||
Reference in New Issue
Block a user