I have set up a proxy page. I am using jsp version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work fine only in IE but not in Mozilla or Chrome.
Even in IE it will work only if I use localhost, but if I use my IP then it won't work.
In Chrome I get: Origin http:// is not allowed by Access-Control-Allow-Origin.
In Mozilla when I check the response I get the login page for the REST services.
Is this issue related to cross domain or what?
I haven't checked to see if my proxy is working; my question is how do I check it. I think it should be working since in IE when I use localhost instead of my IP it works fine.
In Mozilla in Firebug when I check I see the response is the login page for REST service.
I am running my proxy server in my Websphere which is running in port 9080; my webserver is Apache http server which is running at 80 and my ArcGIS server is running in another machine at port 6080.
Proxy server : WebSphereproxy url : localhost:9080/proxy/proxy.jspweb server : apacheweb server url : localhostArcgis server::6080Below is more complete code:
FeatureLayer On Demand html, body, #mapDiv { padding:0; margin:0; height:100%; }
أكثر...
Even in IE it will work only if I use localhost, but if I use my IP then it won't work.
In Chrome I get: Origin http:// is not allowed by Access-Control-Allow-Origin.
In Mozilla when I check the response I get the login page for the REST services.
Is this issue related to cross domain or what?
I haven't checked to see if my proxy is working; my question is how do I check it. I think it should be working since in IE when I use localhost instead of my IP it works fine.
In Mozilla in Firebug when I check I see the response is the login page for REST service.
I am running my proxy server in my Websphere which is running in port 9080; my webserver is Apache http server which is running at 80 and my ArcGIS server is running in another machine at port 6080.
Proxy server : WebSphereproxy url : localhost:9080/proxy/proxy.jspweb server : apacheweb server url : localhostArcgis server::6080Below is more complete code:
FeatureLayer On Demand html, body, #mapDiv { padding:0; margin:0; height:100%; }
أكثر...