Skip to content

Commit a786104

Browse files
Merge pull request #201 from OS2iot/feature/IOT-1437-HTTPHEADERS
Added http headers for security
2 parents 80a7d80 + e088f14 commit a786104

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)