Skip to content

Commit e088f14

Browse files
added httpheaders
1 parent d96febb commit e088f14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.nginx/nginx.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ server {
55
index index.html;
66

77
location / {
8+
# Security header
9+
add_header Referrer-Policy "no-referrer-when-downgrade";
10+
add_header X-Frame-Options "DENY" always;
811
#if ($request_method = 'OPTIONS') {
912
# add_header 'Access-Control-Allow-Origin' '*' always;
1013
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
@@ -34,4 +37,4 @@ server {
3437
#}
3538
try_files $uri $uri/ /index.html;
3639
}
37-
}
40+
}

0 commit comments

Comments
 (0)