Skip to content

Commit d334e95

Browse files
Merge pull request 0xPolygon#619 from 0xPolygon/platform/csp-header
Platform: Add CSP to nginx config
2 parents fca81df + 78e7e86 commit d334e95

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)