Skip to content

Commit af2bcf2

Browse files
authored
Update fileConfig.yml
add missing permission policy + csp directives
1 parent d611a3a commit af2bcf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/traefik/fileConfig.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ http:
5858
Server: "" # prevent version disclosure
5959
X-Powered-By: "" # prevent version disclosure
6060
X-Forwarded-Proto: "https"
61-
#Permissions-Policy: "geolocation=(self), midi=(self), camera=(self), usb=(self), magnetometer=(self), accelerometer=(self), gyroscope=(self), microphone=(self)"
61+
#Permissions-Policy: "accelerometer=(), autoplay=(), camera=(), display-capture=(), encrypted-media=(), fullscreen=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), identity-credentials-get=(), idle-detection=(), local-fonts=(), magnetometer=(), microphone=(), midi=(), otp-credentials=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), storage-access=(), usb=(), web-share=(), window-management=(), xr-spatial-tracking=()"
6262
#Cross-Origin-Embedder-Policy: "unsafe-none"
6363
#Cross-Origin-Opener-Policy: "same-origin"
6464
#Cross-Origin-Resource-Policy: "same-site"
@@ -76,7 +76,7 @@ http:
7676
stsIncludeSubdomains: true # HTTP-Strict-Transport-Security (HSTS)
7777
stsSeconds: 63072000 # HTTP-Strict-Transport-Security (HSTS)
7878
stsPreload: true # HTTP-Strict-Transport-Security (HSTS)
79-
#contentSecurityPolicy: "block-all-mixed-content" # Content-Security-Policy (CSP)
79+
#contentSecurityPolicy: "default-src 'self'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content" # Content-Security-Policy (CSP)
8080

8181
# Authelia guard
8282
authelia:

0 commit comments

Comments
 (0)