Esri / esri-leaflet

A lightweight set of tools for working with ArcGIS services in Leaflet. :rocket:
https://developers.arcgis.com/esri-leaflet/
Apache License 2.0
1.6k stars 798 forks source link

'Access-Control-Allow-Origin' issue is raised when I call admin layers form Arcgis Server. My application has built on Leaflets and Geoserver. Need help , it is urgent. #1116

Closed mercy-monica closed 6 years ago

mercy-monica commented 6 years ago

ie: Chrome 51, IE11

0.7.7, 1.0.0?

1.0.4, 2.0.3, master?

Steps to reproduce the error:

  1. first do this
  2. then do this

What happens is [X].

I was expecting [Y].

(if possible, create a jsbin that demonstrates the problem)

webpack, browserify, RequireJS?

jgravois commented 6 years ago

my best guess is that you are encountering an error because the specific service you're trying to load using esri leaflet doesn't support CORS.

see https://github.com/Esri/esri-leaflet-doc/issues/79 for more information.

without you taking the time to identify the versions of Leaflet and Esri Leaflet you're using and sharing either a live reproducible test case or code snippet, there's not much additional assistance i can provide.

jgravois commented 6 years ago

closing as a duplicate of https://gis.stackexchange.com/questions/291084/cors-issue-in-leaflet-using-arcgis-server