Setting HTTP Referrer on Maps API Browser Key Results in 403 Error

后端 未结 2 2080
时光说笑
时光说笑 2021-02-13 00:36

I\'m confused about how the HTTP Referrer settings work on Google Maps API Browser Keys.

I\'m building a webpage that programatically requests images from Google Maps (p

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-13 01:30

    According to the HTTP referrer placeholder in the console, the *.example.com/* should indeed work.

    In practice, though, this indeed doesn't seem to be the case!

    I was able to solve the issue by simply setting the referrer to:

    example.com

    For more information, have a look at Registering authorized URLs. Good luck!

提交回复
热议问题