CORS issue with WebTileLayer

4654
20
Jump to solution
09-19-2019 02:13 AM
MatthieuThery3
New Contributor

Hi,

I'm trying to add a layer to my webmap using WebTileLayer and am getting a CORS error message.

Our domain is being  

Our server is CORS enabled. I tried to add the url to the trusted servers.  I tried adding the Tile Layer using leaflet and it works ok. I tried doing it in the API sandbox, I'm getting CORS messages as well.

Here is the urlTemplate: https://{subDomain}.tiles.openrailwaymap.org/standard/{level}/{col}/{row}.png

Any ideas?

Tags (2)
0 Kudos
20 Replies
MatthieuThery3
New Contributor

Made it work using a proxy. Thanks.

0 Kudos