Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-... 



Esteban Bustamante

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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-... 



Esteban Bustamante