From 4a480793608ff6390a5cdb2939ddc15172e3abed Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 17 Jul 2022 09:14:13 +0200 Subject: [PATCH] Remove permissions-policy header --- app/main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/main.py b/app/main.py index 37de9ef..bacc7d9 100644 --- a/app/main.py +++ b/app/main.py @@ -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"