I am creating pdf document using jspdf. In the document i have to display google map, so i used static google maps https://developers.google.com/maps/documentation/static-maps/intro. This works fine on localhost.
But on deploying the app it gives error 403(forbidden) i also added parameter sensor=false in static map url.
Request URL : https://maps.googleapis.com/maps/api/staticmap?center=47.3857009,9.2798472&zoom=15&scale=2&format=png&size=600x400&maptype=roadMap&sensor=false&markers=size:mid%7Ccolor:0xff0000%7C47.3857009,9.2798472
Thanks.