Refused to execute script from Dummy.js file because its MIME type ('') is not executable, and strict MIME type checking is enabled. | Community
Skip to main content
Level 2
August 4, 2023
Solved

Refused to execute script from Dummy.js file because its MIME type ('') is not executable, and strict MIME type checking is enabled.

  • August 4, 2023
  • 1 reply
  • 40172 views

Hi Team,

 

I am getting below console error while open a page where we have used one .js file to perform some action, This same js file is working fine in author instance without any error but on publish instance It is throwing error and entire script is loading as blank and we could not perform same action which we did on author instance.

Please give us the solution to fix this issue.

 

console error:  Refused to execute script from .js file because its MIME type ('') is not executable, and strict MIME type checking is enabled.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

Can you validate that the script file actually exists in the location the browser is trying to load it? Please read more about this issue here: https://stackoverflow.com/questions/40574159/refused-to-execute-script-strict-mime-type-checking-is-enabled 

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
August 4, 2023

Can you validate that the script file actually exists in the location the browser is trying to load it? Please read more about this issue here: https://stackoverflow.com/questions/40574159/refused-to-execute-script-strict-mime-type-checking-is-enabled 

Esteban Bustamante