La suite :
Donc, dans le code js suivant :
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
on met à la place
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
et à la place de
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
on met
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'