Resource interpreted as Script but transferred with MIME type image/png

允我心安 提交于 2020-01-02 06:53:20

问题


Today, all of a sudden I started obtaining the following response in my development website:

Refused to execute script from 'https://mts1.googleapis.com/vt?pb=!1m4!1m3!1i8!2i68!3i120!1m4!1m3!1i8!2i68!…12m1!1e47!12m3!1e37!2m1!1ssmartmaps!4e3&callback=_xdc_._pk356f&token=37643' because its MIME type ('image/png') is not executable, and strict MIME type checking is enabled. 

This causes the tiles to not be loaded properly and its bugging the website. I've read and searched and found nothing useful on how to fix it.

I've checked my quota in google api console just to make sure is not that I hit the limit or anything but that is not it.

EDIT: Also, this is not only for my development website. It is happening in all websites that I access running the google map api v3.

Any light shed on this would be most helpful.

来源:https://stackoverflow.com/questions/25501862/resource-interpreted-as-script-but-transferred-with-mime-type-image-png

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!