Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 990
t1337 Avatar asked Mar 04 '26 07:03

t1337


1 Answers

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

like image 115
Ashiqur Rahman Avatar answered Mar 06 '26 19:03

Ashiqur Rahman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!