Hi at all.
I have develop a custom JS application and i'm using a proxy to read the basemap arcgis online.
For this i have configured the proxy.config in this way:
<?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
mustMatch="true">
<serverUrls>
<serverUrl url="https://services.arcgisonline.com/arcgis/rest"
matchAll="true"/>
</serverUrls>
</ProxyConfig>
but the proxy give me this error:
{error: {code: 500,message:"Unable to connect to the remote server https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tilemap/6/16/32/8/8&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback"}}
and the proxy request is this:
https://localhost/DotNet/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tilema…
Any help please?
Thanks
Dev App,
You have https://services.arcgisonline.com/arcgis/rest in you proxy.config and then you are making a http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
They are different protocols and thus not considered the same. Don't mix your protocols
And this is the serverUrl I use:
<serverUrl url="http://services.arcgisonline.com"
No need to be specific with your url that is what the matchAll property is for.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.