The JavaScript API for Google Maps must be downloaded directly from Google’s servers.

I am using the google maps js API but not requesting it directly (due to proxy server restrictions). So so far I have had a PHP script (on my server) as a middle layer. Therefore, I had this line in my index.html: <script src="https://my-production-domain/google.php"></script>

So far, everything has worked flawlessly. I get this response from the API:

The Google Maps JavaScript API must be loaded directly from Google’s servers

Is there any workaround? Unable to change proxy rules.

Thanks in advance

+4
source share

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


All Articles