Skip to content

Commit

Permalink
Add security headers to nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHowardRSA123 committed Apr 26, 2024
1 parent 2dc04b1 commit e25576d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx/conf.d/django.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ server {
proxy_pass http://gunicorn;
}

add_header X-Frame-Options SAMEORIGIN always;
add_header X-Content-Type-Options nosniff always;
add_header Strict-Transport-Security "max-age=31536000" always;
# add_header Content-Security-Policy "default-src https: 'self';" always;
add_header Referrer-Policy "same-origin" always;

add_header X-Frame-Options SAMEORIGIN always;
add_header X-Content-Type-Options nosniff always;
add_header Strict-Transport-Security "max-age=31536000" always;
Expand Down

0 comments on commit e25576d

Please sign in to comment.