Skip to content

Instantly share code, notes, and snippets.

@brianmaierjr
Created March 28, 2019 14:28
Show Gist options
  • Save brianmaierjr/82ac951e4f7b9a3b167f37833488cc09 to your computer and use it in GitHub Desktop.
Save brianmaierjr/82ac951e4f7b9a3b167f37833488cc09 to your computer and use it in GitHub Desktop.
Security Headers
# Strict-Transport-Security
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
# X-Content-Type-Options
add_header X-Content-Type-Options "nosniff";
# X-XSS Protection
add_header X-XSS-Protection "1; mode=block";
# X-Frame-Options
add_header X-Frame-Options SAMEORIGIN;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment