Use X-Download-Options middleware to prevent IE execution
mainUse the X-Download-Options middleware to set the X-Download-Options header to noopen. This prevents Internet Explorer users from executing downloaded HTML files in the context of your site, which mitigates risks when serving untrusted HTML. Note that this is a specific fix for Internet Explorer and has negligible performance/bandwidth impact.
const ienoopen = require("ienoopen");
app.use(ienoopen());