The resource is interpreted as a Script, but is passed with the type MIME image / png

Today, I unexpectedly started getting the following response on 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 results in tiles not loading properly and not listening to the website. I read and searched and did not find anything useful in how to fix it.

I checked my quota in the google api console to make sure that it’s not that I got into the limit or something else, but it’s not.

EDIT: Also, this is not just for my development site. This happens on all sites where I run the google map api v3.

Any light dips on this would be most helpful.

+2
source share

Source: https://habr.com/ru/post/1201132/


All Articles