My leaflet map shows grey tiles. I added the layer also. This is how it shows
<div class="col-md-5">
<div id="mainMap" style="height: 400px"></div>
</div>
const mainMap = new L.map("mainMap", {
doubleClickZoom: false,
zoomControl: false,
}).setView([34.543896, 64.160652], 6);
const osm = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
maxZoom: 6,
attribution:
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
});
mainMap.addLayer(osm);