Resource interpreted as other but transferred with MIME type text/javascript?

前端 未结 7 1775
长情又很酷
长情又很酷 2021-02-01 03:46

I keep getting \"Resource interpreted as other but transferred with MIME type text/javascript.\", but everything seems to be working fine. This only seems to be

7条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 04:19

    The most common way to get the error is with the following code:

    
    

    A blank url is a shortcut for the current page url, so a duplicate request is made which returns content type html. The browser is expecting an image, but instead gets html.

提交回复
热议问题