Created
December 4, 2016 13:18
-
-
Save jenswittmann/07d8eeb55568856859201ed339f6cb2a to your computer and use it in GitHub Desktop.
MODX secure http headers
This file contains 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
header("X-Content-Type-Options: nosniff"); | |
header("X-XSS-Protection: 1; mode=block"); | |
header("X-Frame-Options: SAMEORIGIN"); | |
header("Connection: keep-alive"); | |
header("ETag: "); | |
header("Content-Security-Policy: base-uri https://nixlos.de; default-src https:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'; child-src https://nixlos.de"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this in your PHP file, if your server run not in CGI mode. Thanks to Mazso:
https://github.com/Mazso/evolution-master/commit/fb75f448900258e0fa7c7d7fd9b3b7046f326281