Skip to content

Commit

Permalink
Merge pull request #32 from PrivateBin/security-headers
Browse files Browse the repository at this point in the history
new security headers, recommended by ZAP scan #29
  • Loading branch information
elrido authored Apr 6, 2021
2 parents a86fc49 + 7b367ca commit bd1a39f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/nginx/http.d/site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ server {
root /var/www;
index index.php index.html index.htm;

add_header Cross-Origin-Embedder-Policy require-corp;
add_header Cross-Origin-Resource-Policy same-origin;
add_header Cross-Origin-Opener-Policy same-origin;
add_header Referrer-Policy no-referrer;
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options deny;
add_header X-XSS-Protection "1; mode=block";

location / {
include /etc/nginx/location.d/*.conf;
try_files $uri $uri/ /index.php$is_args$args;
Expand Down

0 comments on commit bd1a39f

Please sign in to comment.