New "API usage" keys, referer options not working

440 views
Skip to first unread message

ProbablyMike

unread,
Nov 30, 2011, 4:38:22 AM11/30/11
to google-map...@googlegroups.com
Hi,

I originally posted this in the V2 group as we're still on the V2 API, but no response, thought I'd try here...

With ref to this blog post:

Changed all our maps to use the new key generated in the API Console, and all work fine.

But one thing is that the referers option for the key does not appear to be working.

In the API Console I go to the API Access page, and on there to Key for browser apps (with referers) and Edit allowed referers...
But no matter what I put in there (even a made-up domain) then the maps still load.

Obviously we want to restrict which domains can use our key, but at the moment anyone could use it.

Thanks,
Mike

Barry Hunter

unread,
Nov 30, 2011, 5:03:57 PM11/30/11
to google-map...@googlegroups.com
The console log in Chrome (not sure other browsers) reports the error,
if the referrers aren't valid.

I suspect they leaving it a 'soft' error, until sure its working. Ie
don't want to break any genuine requests.

Until billing is enabled (early 2012) nobody can really do anything by
using your key (other than inflating your usage stats a bit :) - so
don't worry about it yet :)

> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/5ACHdTj79E0J.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply all
Reply to author
Forward
0 new messages