Skip to content

Commit

Permalink
Add additional headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 10, 2024
1 parent c0fb63e commit f80c334
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ http {
server_tokens off;

add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY always;
add_header Referrer-Policy strict-origin-when-cross-origin;
add_header Strict-Transport-Security max-age=31536000; includeSubDomains; preload
add_header Permissions-Policy fullscreen=(self), geolocation=(self), clipboard-read=(self), clipboard-write=(self)
add_header Content-Security-Policy default-src 'self'; upgrade-insecure-requests;

location / {
if ($request_uri ~ ^/(.*)\.html) {
Expand Down

0 comments on commit f80c334

Please sign in to comment.