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