Skip to content

Commit 78e7e86

Browse files
add CSP to nginx config
1 parent fca81df commit 78e7e86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/assets/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ server {
55

66
error_page 404 /404.html;
77

8+
add_header Content-Security-Policy upgrade-insecure-requests;
9+
810
location / {
911
try_files $uri.html $uri $uri/ =404;
1012
}

0 commit comments

Comments
 (0)