From da360b26b9b0641717c2e9177b9cd26d803372f3 Mon Sep 17 00:00:00 2001 From: Zev Lee <60147316+zevlee@users.noreply.github.com> Date: Wed, 26 May 2021 14:00:29 +0000 Subject: [PATCH] Add Permissions-Policy HTTP header to Caddyfile --- Caddyfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Caddyfile b/Caddyfile index 0013013..c84ce74 100644 --- a/Caddyfile +++ b/Caddyfile @@ -44,6 +44,9 @@ X-Frame-Options "SAMEORIGIN" # Disable some features + Permissions-Policy "accelerometer=();ambient-light-sensor=(); autoplay=();camera=();encrypted-media=();focus-without-user-activation=(); geolocation=();gyroscope=();magnetometer=();microphone=();midi=();payment=();picture-in-picture=(); speaker=();sync-xhr=();usb=();vr=()" + + # Disable some features (legacy) Feature-Policy "accelerometer 'none';ambient-light-sensor 'none'; autoplay 'none';camera 'none';encrypted-media 'none';focus-without-user-activation 'none'; geolocation 'none';gyroscope 'none';magnetometer 'none';microphone 'none';midi 'none';payment 'none';picture-in-picture 'none'; speaker 'none';sync-xhr 'none';usb 'none';vr 'none'" # Referer