Remove permissions-policy header
parent
d8a56cec49
commit
4a48079360
|
@ -134,11 +134,6 @@ class CustomMiddleware:
|
||||||
headers[
|
headers[
|
||||||
"content-security-policy"
|
"content-security-policy"
|
||||||
] = "default-src 'self'; style-src 'self' 'unsafe-inline';"
|
] = "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:
|
if not DEBUG:
|
||||||
headers[
|
headers[
|
||||||
"strict-transport-security"
|
"strict-transport-security"
|
||||||
|
|
Loading…
Reference in New Issue