queryTaskWithin = new esri.tasks.QueryTask("http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_haz/MapServer/0");
Error: Unable to load /proxy/proxy.ashx?http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_haz/MapServer/0/query status:403
What I understand from your description, place this http://services.arcgisonline.com/clientaccesspolicy.xml xml file in root directory of your server. Also place http://services.arcgisonline.com/crossdomain.xml this xml file in your servers root directory.What I mean from server's root directory is the same directory where you placed your proxy.These XML's help in granting access to request's coming from other domains to your server.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.