Proxy setting - Unable to Load - Status 403

6461
1
03-15-2013 08:38 AM
CyrilCherian
New Contributor II
I am trying to set up the proxy for my web application because the request exceeds 2000 characters. I set up the proxy as described in ESRI site. When I run my application I get the error as shown below

Unable to load
http://localhost/proxy.ashx?http://TestServer:6080/arcgis/rest/services/MapLegalDescriptionFunction/... Status:403

I put my web application (one HTML page with javascript api code) and the two proxy files to my development machine's root folder. This machine is XP.

I have Geoprocessing service running  on another machine (TestServer). When the length of GP request exceeds the limit, the application tries to use proxy and that is when I see the error above. This machine is Win 2008.

Status 403 is Forbidden page error.

Appreciate if anyone can help me with this.

Thanks
Cyril

0 Kudos
1 Reply
JohnGravois
Frequent Contributor
a 403 is telling you that your current proxy security settings don't allow you to forward traffic from that specific address.  while developing it is safe to set the global "mustMatch" tag in proxy.config to false so that any page is forwarded, but on a live public site, you would want to set the value back to false and ensure that all servers which need to be communicated with are listed explicitly.

<ProxyConfig mustMatch="false">

<serverUrl url="http://TestServer:6080/arcgis/rest/services/"
               matchAll="true">
</serverUrl>