Forums

Restricting Google Maps API Key

My app has been using Google Maps API well for a while. Now I want to restrict the API just to a few sites, as per https://cloud.google.com/blog/products/maps-platform/google-maps-platform-best-practices-restricting-api-keys. However, though I add .pythonanywhere.com/ , facastro.pythonanywhere.com/* and facastro.pythonanywhere.com/freight to the un-restricted list, it gets restricted. Any idea which http should I have in the list?

From the docs there, it looks like it should be facastro.pythonanywhere.com -- but if that doesn't work, perhaps someone on Stack Overflow will have the answer? This isn't a PythonAnywhere-specific question (which is fine, there's no problem about asking questions like that here!), which means you're more likely to find an expert in the Google Maps API on there than you are here.