1
votes

I have a website runned on shared hosting on domain http://www.ssmp-almaty.kz/new/. I am using Yii2 framework in subfolder. But suddenly Google Chrome refuses to execute my javascript files giving error: Refused to execute script from 'http://www.ssmp-almaty.kz/new/js/plugins.js' because its MIME type ('application/x-httpd-php') is not executable, and strict MIME type checking is enabled. Can you help me to understand what is the problem is this? <script src="js/plugins.js"></script> <script src="media/slick/slick.min.js"></script> <script src="js/carousel.min.js"></script> <script> Carousel.init({ target: $('.carousel') }); </script> <script src="js/scripts.js"></script>

1

1 Answers

0
votes

As user Brian White said in a previous question related to this:

Google updates automatically about every 6 weeks. There were probably checks added to the inclusion of Javascript files to help prevent problems executing bad files or thwart some security threat.

Here is that question.

Hope that helps!