I am trying to setup helmet security on my react application production server. But whenever I try hitting the URL. I get an error saying Refused to execute script from 'http://localhost:3000/static/js/app.378bd8b8eee930fb268c.js' because its MIME type ('application/gzip') is not executable, and strict MIME type checking is enabled.
For compression build I am using compression-webpack-plugin
.
The compression build is working perfectly fine when I remove the helmet
.
Helmet Plugin Setting:
{"xssFilter": {"setOnOldIE": true}}
http://localhost:3000/static/js/app.378bd8b8eee930fb268c.js
supposed to respond? – AirOneX-XSS Protection
header to1; mode=block
instead. – AirOne