osmbuildings icon indicating copy to clipboard operation
osmbuildings copied to clipboard

ol6 / strict-origin-when-cross-origin Issues.

Open AmSoMad opened this issue 3 years ago • 0 comments

hi my Professor.

i'm junior dev. i know . this problem very ez.. but i don't no ..

why ?????????

i use openlayers 6.6

var vector = new ol.layer.Tile({
            title: "OSMBuildings",
            source: new ol.source.XYZ({
                format: new ol.format.GeoJSON,
                url:'https://{s}.data.osmbuildings.org/0.2/anonymous/tile/{z}/{x}/{y}.json',
                _**crossOrigin: 'anonymous',**_
            }),
            baseLayer: false,
            visible: false,
            attribution: '© Data <a href="https://openstreetmap.org/copyright/">OpenStreetMap</a>© 3D <a href="https://osmbuildings.org/copyright/">OSM Buildings</a>',
            minResolution: 0,	
            maxResolution: 5,
            }),

map.addLayers(vector)

but.

Request URL: https://%7Bs%7D.data.osmbuildings.org/0.2/anonymous/tile/18/223939/102123.json Referrer Policy: strict-origin-when-cross-origin

T..T

AmSoMad avatar Sep 07 '21 05:09 AmSoMad