I have a situation with an application that I deploy a Google Map that can be displayed in three different locations:
- In Application Webview
- Preview in browser
- Published to a server
So I need the user to have added some referrers to there api key to cover them for the time they publish to their own server.
They can add a referrer just fine for both the published map on their own server, and the preview in browser locally aspects.
But I can't figure out what you add as a referrer for the situation when the map is previewed in the applications web view, and the url for the page at that point is a file:/// referenced url?
If we leave all referrers blank for a complete wildcard api key it works in the webview in app.
I have tried about as many configurations as I can think of for a referrer for file:/// url but no luck:
I tried:
file
file*
file/*
file:///*