Is it possible to use OSM tiles in a Leaflet-style map hosted in a local file? Since local files do not have Referer headers, tile requests are getting blocked with error code 403r due to lack of referer.
That solution adds a X-Requested-With header when opening the leaflet map in a local file:// html. (As the User-Agent cannot be changed and as no referrer is send by the local file)
Again, see post#46 in that thread (the last post & the one I linked to above)