t1337
t1337

Reputation: 83

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?

Upvotes: 3

Views: 1887

Answers (1)

Ashiqur Rahman
Ashiqur Rahman

Reputation: 424

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

Upvotes: 4

Related Questions