Skip to content

403r referer is required by tile usage policy of openstreetmaps in meshcore_directlinks_playback.html #4

Description

@OiD-W

When using "meshcore_directlinks_playback.html "the map tiles appear with the error "403r referer is required by tile usage policy of openstreetmaps"

I changed the html file from;

L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap'
}).addTo(map);

to:
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap',
referrerPolicy: 'strict-origin-when-cross-origin'
}).addTo(map);

I'm not sure if it's the correct way but the 403r error on the maps no longer appears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions