Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AmSoMad opened this issue Sep 7, 2021 · 0 comments
Open

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

AmSoMad opened this issue Sep 7, 2021 · 0 comments

Comments

@AmSoMad
Copy link

AmSoMad commented Sep 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant