mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Remove permissions-policy header
This commit is contained in:
parent
d8a56cec49
commit
4a48079360
1 changed files with 0 additions and 5 deletions
|
@ -134,11 +134,6 @@ class CustomMiddleware:
|
|||
headers[
|
||||
"content-security-policy"
|
||||
] = "default-src 'self'; style-src 'self' 'unsafe-inline';"
|
||||
headers["permissions-policy"] = (
|
||||
"geolocation=(), midi=(), camera=(), usb=(), "
|
||||
"magnetometer=(), accelerometer=(), vr=(), speaker=(), "
|
||||
"ambient-light-sensor=(), gyroscope=(), microphone=()"
|
||||
)
|
||||
if not DEBUG:
|
||||
headers[
|
||||
"strict-transport-security"
|
||||
|
|
Loading…
Reference in a new issue