mirror of
https://github.com/ChrispyBacon-dev/DockFlare.git
synced 2026-04-28 03:39:32 +00:00
CSP exception for rsme
Some checks are pending
Docker Image Build and Push / build (push) Waiting to run
Some checks are pending
Docker Image Build and Push / build (push) Waiting to run
This commit is contained in:
parent
b197382cca
commit
f61fc7e5ff
1 changed files with 6 additions and 3 deletions
|
|
@ -115,10 +115,13 @@ def add_security_headers_bp(response):
|
|||
|
||||
csp = {
|
||||
"default-src": ["'self'"],
|
||||
"script-src": ["'self'"],
|
||||
"style-src": ["'self'", "'unsafe-inline'"],
|
||||
# Allow inline scripts for onclick handlers to work
|
||||
"script-src": ["'self'", "'unsafe-inline'"],
|
||||
# Allow styles from rsms.me for the Inter font
|
||||
"style-src": ["'self'", "'unsafe-inline'", "https://rsms.me"],
|
||||
"img-src": ["'self'", "data:"],
|
||||
"font-src": ["'self'"],
|
||||
# Allow fonts from rsms.me
|
||||
"font-src": ["'self'", "https://rsms.me"],
|
||||
"connect-src": ["'self'"],
|
||||
"frame-src": ["'none'"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue