getting HTTP 403 forbidden in local


I’m a developper and I recently got an application which is not working at all.
I see that previous developpers configured a map with leaflet using osm.
It works in prod but in local I’m getting 403 forbidden when loading tiles.
I don’t understand why.

The following call is failing:
curl ‘
-H ‘authority:
-H ‘user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36’
-H ‘accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8’
-H ‘sec-fetch-site: cross-site’
-H ‘sec-fetch-mode: no-cors’
-H ‘sec-fetch-dest: image’
-H ‘referer: http://localhost:4200/
-H ‘accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7’

If I change the referer it works, but it is normal to no be able to load tiles from localhost ?