Skip to content

Commit e817fd8

Browse files
committed
Add Permissions-Policy header
1 parent 553c3de commit e817fd8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎frontend/public/.htaccess‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ RewriteRule ^ index.html [L]
3131
# Browsers that have opened the site once over HTTPS always use HTTPS for it, for a year
3232
# (browsers ignore this line on a plain HTTP page, so it is safe to send on every answer)
3333
Header always set Strict-Transport-Security "max-age=31536000"
34+
# Device features: only this site may use the camera (admin check-in scanner) and microphone (help desk voice
35+
# messages); nothing may ask for the visitor's location
36+
Header always set Permissions-Policy "camera=(self), microphone=(self), geolocation=()"
3437
</IfModule>
3538

3639
# 3. Caching: the page itself and the app's service worker are always checked for a new version,

0 commit comments

Comments
 (0)