Skip to content
Snippets Groups Projects
Commit aef44afb authored by Dale Sikkema's avatar Dale Sikkema
Browse files

MAGETWO-41913: Add no-sniff headers/xss protection to server config files

parent 444e252d
Branches
No related merge requests found
...@@ -182,3 +182,10 @@ ...@@ -182,3 +182,10 @@
## http://developer.yahoo.com/performance/rules.html#etags ## http://developer.yahoo.com/performance/rules.html#etags
#FileETag none #FileETag none
############################################
## Add custom headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options: nosniff
Header set X-XSS-Protection: '1; mode=block'
</IfModule>
...@@ -24,6 +24,9 @@ index index.php; ...@@ -24,6 +24,9 @@ index index.php;
autoindex off; autoindex off;
charset off; charset off;
add_header 'X-Content-Type-Options' 'nosniff';
add_header 'X-XSS-Protection' '1; mode=block';
location /setup { location /setup {
root $MAGE_ROOT; root $MAGE_ROOT;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment