Skip to content

Commit

Permalink
Format Permissions-Policy header directive
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Mar 18, 2024
1 parent aed932a commit cb4c4e4
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion h5bp/security/permissions-policy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,27 @@
# https://scotthelme.co.uk/a-new-security-header-feature-policy/

<IfModule mod_headers.c>
Header always set Permissions-Policy "accelerometer=(),autoplay=(),browsing-topics=(),camera=(),display-capture=(),document-domain=(),encrypted-media=(),fullscreen=(),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),publickey-credentials-get=(),screen-wake-lock=(),sync-xhr=(self),usb=(),web-share=(),xr-spatial-tracking=()" "expr=%{CONTENT_TYPE} =~ m#text\/(html|javascript)|application\/pdf|xml#i"
Header always set Permissions-Policy "\
accelerometer=(),\
autoplay=(),\
browsing-topics=(),\
camera=(),\
display-capture=(),\
document-domain=(),\
encrypted-media=(),\
fullscreen=(),\
geolocation=(),\
gyroscope=(),\
magnetometer=(),\
microphone=(),\
midi=(),\
payment=(),\
picture-in-picture=(),\
publickey-credentials-get=(),\
screen-wake-lock=(),\
sync-xhr=(self),\
usb=(),\
web-share=(),\
xr-spatial-tracking=()\
" "expr=%{CONTENT_TYPE} =~ m#text\/(html|javascript)|application\/pdf|xml#i"
</IfModule>

0 comments on commit cb4c4e4

Please sign in to comment.