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&c..."}}
and the proxy request is this:
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"
matchAll="true"/>
No need to be specific with your url that is what the matchAll property is for.