简体   繁体   中英

Does Google Maps API work on Github Pages?

I'm hosting a website on GitHub pages but I keep getting the error 'referrer not allowed' when I try to load the Google Maps API script. I've added the page's URL to the API console (and I've tried lots of variations) and it keeps saying the same thing.

Does anyone know why this might be?

Recreating the API key at https://console.developers.google.com will fix the issue. And use your current GitHub pages domain URL to generate the API key

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM