I am testing a web app that uses the google maps API. The issue is that netlify live’s urls are like this:
The 00000 varies every time. I have website restrictions for the google maps api key, but I cannot set it for netlify live because the url varies every time. I can use the wildcard but I cannot do this:
https://sitename-*.netlify.live/. It only works like this:
A specific URL with an exact path: www.example.com/path Any URL in a single domain with no subdomains, using a wildcard asterisk (*): example.com/* Any URL in a single subdomain, using a wildcard asterisk (*): sub.example.com/* Any subdomain or path URLs in a single domain, using wildcard asterisks (*): *.example.com\/* A URL with a non-standard port: www.example.com:8000/*
Is there a workaround?
The reason I use netlify live for this is because it allows me to test the app in different devices using https. Normally I use webpack dev server but since this app requires location permission, I need https (location permission is blocked in http). Location permission is allowed through localhost:PORT but not through the actual IP address (which I need to test it on other devices). Anyway, the point is netlify live works well, but I just need to know if I can get around the apikey permission thing.