Stylesheet not loaded because of MIME-type

前端 未结 30 2896
猫巷女王i
猫巷女王i 2020-11-22 07:29

I\'m working on a website that uses gulp to compile and browser sync to keep the browser synchronised with my changes.

The gulp task compiles everything

30条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 07:53

    In my case, when I was deploying the package live, I had it out of the public HTML folder. It was for a reason.

    But apparently a strict MIME type check has been activated, and I am not too sure if it's on my side or by the company I am hosting with.

    But as soon as I moved the styling folder in the same directory as the index.php file I stopped getting the error, and styling was activated perfectly.

提交回复
热议问题