3

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?

t1337
  • 83
  • 1
  • 7
  • 1
    Looks like you have to recreate the API key after changing the allowed domains: https://stackoverflow.com/questions/32600314/google-maps-api-referrer-not-allowed – yuriy636 Jul 15 '17 at 11:18

1 Answers1

4

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

Ashiqur Rahman
  • 425
  • 7
  • 21