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
votes