Skip to content

Commit 7d53042

Browse files
committed
Add X-Content-Type-Options header globally in VirtualHost
Set X-Content-Type-Options: nosniff at the VirtualHost level to ensure all responses (including /custom.css and /robots.txt) have the header, not just assets under /assets and /packs paths. CP4AIOPS-448
1 parent 967218f commit 7d53042

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

COPY/etc/httpd/conf.d/manageiq-https-application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Include conf.d/manageiq-redirects-websocket
1313
Include conf.d/manageiq-host-config
1414
RequestHeader set X_FORWARDED_PROTO 'https'
1515
Header always set Strict-Transport-Security "max-age=631138519"
16+
Header always set X-Content-Type-Options "nosniff"
1617

1718
ErrorLog /var/www/miq/vmdb/log/apache/ssl_error.log
1819
TransferLog /var/www/miq/vmdb/log/apache/ssl_access.log

0 commit comments

Comments
 (0)