Created
May 7, 2018 11:53
-
-
Save rayriffy/b3b96643b5564d077ef956e1f080cfce to your computer and use it in GitHub Desktop.
Security headers for NGINX server blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# STRICT ORIGIN WHEN CROSS ORIGIN | |
add_header X-Frame-Options "SAMEORIGIN" always; | |
add_header X-XSS-Protection "1; mode=block" always; | |
add_header X-Content-Type-Options "nosniff" always; | |
add_header Referrer-Policy "strict-origin-when-cross-origin" always; | |
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment