Google static map API getting 403 forbidden when loading from img tag

后端 未结 11 692
执念已碎
执念已碎 2021-01-03 21:15

What I have is a Google map that shows the location of a property but when I come to print the dynamic maps dont print so good so I decided to implement the Google Static Ma

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 21:28

    I could also not display static maps and could see 403 error in the browser's network console.

    http response headers:

    status:403
    x-content-type-options:nosniff
    

    I had an API key with a lot of Google Maps APIs enabled but the Google Static Maps API was missing, enabling it solved the issue.

提交回复
热议问题