Hi
I got the below error and page is not loading in angular, can you suggest me some solution on it
Refused to execute script from 'Testctrl.com/Testcase/dev/vendor.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Thanks
Tuhin PaulPosted Apr 11, 2023, 3:57 PM
If the server is unable to send the correct MIME type for the
vendor.jsfile, you may need to use a different URL for the file that is served with the correct MIME type.Tuhin PaulPosted Apr 11, 2023, 3:56 PM
Make sure that the server is configured to send the correct MIME type for JavaScript files, which is
application/javascriptortext/javascript. You can check the server configuration by looking at the responseTuhin PaulPosted Apr 11, 2023, 3:56 PM
I think the server is sending an incorrect MIME type for the
vendor.jsfile, which is preventing it from being executed by the browser.