Reputation: 902
I am trying to restrict my Google Place API key to a set of specific websites, but the response to the call on those websites is always a 403.
I have tried:
https://*.domainA.com/*
https://*.domainB.com/*
and
*.domainA.com/*
*.domainB.com/*
However neither seem to work. It also doesn't seem to work when I only have one of them. When I completely remove the restrictions on the key, it does work.
My specific case is a NextJS app deployed on Vercel.
Upvotes: 1
Views: 140
Reputation: 186
*.domainA.com/*
the above will only work if you use a subdomain. If you access your website without a subdomain like https://domainA.com/somepage, then add another entry without the leading wildcard like
domainA.com/*
Upvotes: 1