Autoptimize–>X-Content-Type-Options Header Missing
-
I am using autoptimize plugin for my site, the plugin generates various CSS & JS optimized files. While scanning my site in zap tool, it shows “X-Content-Type-Options Header Missing“, which means need to add “nosniff” to the files.
I have already enabled “nosniff” for my site. The zap tool doesn’t report any pages of my site, only the files optimized are missing “nosniff”.
Examples of generated files: MyDomain/wp-content/cache/autoptimize/css/autoptimize_single_0e6e9c44fd8369301922c5070a90799e.css
I have tried below lines in htaccess files but nothing works,<FilesMatch "\.(css|js)$"> Header set X-Content-Type-Options "nosniff" </FilesMatch>
Please share solution to add “nosniff” for the autoptmize generated files.
Regards,Bharathi Viswa S.
The topic ‘Autoptimize–>X-Content-Type-Options Header Missing’ is closed to new replies.