



#Maptiler download tiles mac os x#
User-agent: "Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15"ĭo you think this is a normal behavior ? If OSM need one of those 2 headers to be validated on the server side, I'm not getting why it does not reconize Chrome user-agent as a valid one. User-agent: "Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/.74 Safari/537.36" I have the impression that OSM is validating those 2 headers: referer and user-agent It seems to be related to user-agent and/or referer. On Safari it works even with referer is equal to localhost. On chrome I can retrieve a tile if the referer if different than localhost. So the problem seems to come from headers added by the browser. H 'accept-language: fr-FR,fr q=0.9,en-US q=0.8,en q=0.7' \Īfter some more investigation I found that in local it works on Safari but not on Chrome. H 'accept: image/avif,image/webp,image/apng,image/svg+xml,image/ ,/* q=0.8' \ I can see that the app can't load tiles because it gets an HTTP 403 forbidden as a reponse.īelow you can find a example of a call done for a tile that is failing: But in local the map does not load and I can see many calls failing in the network tab of the debugger. But during the development phase, the project runs in local (served on localhost:4200). If I deploy the code somewhere, the map is working fine. The application is displaying a map on a page (client side application using Angular). As a developper, I now have to work on an existing application with a setup of leaflet using OSM that is already in place.
