Skip to content

Commit 28b43ca

Browse files
authored
Update hsts.conf
Signed-off-by: Zoey <[email protected]>
1 parent f908aa2 commit 28b43ca

File tree

1 file changed

+1
-1
lines changed
  • rootfs/usr/local/nginx/conf/conf.d/include

1 file changed

+1
-1
lines changed

rootfs/usr/local/nginx/conf/conf.d/include/hsts.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ more_set_headers "X-XSS-Protection: 0";
22
more_set_headers "X-Frame-Options: SAMEORIGIN";
33
more_set_headers "X-Content-Type-Options: nosniff";
44
more_set_headers "Referrer-Policy: strict-origin-when-cross-origin";
5-
more_set_headers "Content-Security-Policy: $content_security_policy";
5+
more_set_headers "Content-Security-Policy: $content_security_policy"; # if not set by upstream: upgrade-insecure-requests, else upstreams value is used
66

77
more_set_headers "Strict-Transport-Security: $hsts_header"; # means: max-age=63072000; includeSubDomains; preload

0 commit comments

Comments
 (0)