Resource interpreted as Script but transferred with MIME type text/plain - for local file

前端 未结 3 1752
梦毁少年i
梦毁少年i 2020-11-30 18:42

I\'m getting a \"Resource interpreted as Script but transferred with MIME type text/plain\" warning in Google Chrome when including a local script file.

I know the p

3条回答
  •  被撕碎了的回忆
    2020-11-30 19:24

    I tried fixing this problem using this method but it didn't work for me.

    My problem was that IIS manager didn't have MIME types in HTTP Features.

    I was able to turn it on by enabling Static Context via...

    --> Control Panel

    --> Programs

    --> Turn Windows features on or off

    --> Internet Information Services

    --> World Wide Web Services

    --> Common HTTP features

    --> [X] Static Content.

    After this, MIME types appeared and everything started working again.

提交回复
热议问题