mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
More template fixes
This commit is contained in:
@ -128,9 +128,9 @@ class CustomMiddleware:
|
||||
headers["x-xss-protection"] = "1; mode=block"
|
||||
headers["x-frame-options"] = "SAMEORIGIN"
|
||||
# TODO(ts): disallow inline CSS?
|
||||
headers["content-security-policy"] = (
|
||||
"default-src 'self'" + " style-src 'self' 'unsafe-inline';"
|
||||
)
|
||||
headers[
|
||||
"content-security-policy"
|
||||
] = "default-src 'self' style-src 'unsafe-inline';"
|
||||
if not DEBUG:
|
||||
headers[
|
||||
"strict-transport-security"
|
||||
|
Reference in New Issue
Block a user