<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Request error unable to load from http://sampleserver6.... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467948#M43381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one question about hosting organization data. What kind of data is it? What I have in mind is perhaps my company needs to some map of its own and then it would need to host that map data. But in my case, I don't need that yet. I only need the basemap from arcmap, which will be pull using the javascript api. So is it this data that you are referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 13:36:21 GMT</pubDate>
    <dc:creator>ryannz</dc:creator>
    <dc:date>2014-08-14T13:36:21Z</dc:date>
    <item>
      <title>Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467935#M43368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I recently publish my site and it was working fine until today. I got this message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://screencast.com/t/BdTyk4X7" title="http://screencast.com/t/BdTyk4X7"&gt;http://screencast.com/t/BdTyk4X7&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what it is? How can I fix this? When I run the same code locally, it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 23:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467935#M43368</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-13T23:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467936#M43369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using &lt;A href="https://developer.chrome.com/devtools"&gt;Chrome Developer Tools&lt;/A&gt; or &lt;A href="http://msdn.microsoft.com/en-au/library/ie/gg589507(v=vs.85).aspx"&gt;IE debugging&lt;/A&gt; to get more information about errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing with geometry services is that they often require a &lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html"&gt;proxy&lt;/A&gt; to be configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467936#M43369</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-14T02:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467937#M43370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Another bit of advice is that esri sample servers are NOT meant to be used in production environments. You should always change to use your own servers geometry service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P data-angle="0" data-canvas-width="114.2578" data-font-name="Times New Roman" style="font-size: 16.6px; font-family: sans-serif;"&gt;&lt;SPAN class="highlight selected"&gt;Sample &lt;/SPAN&gt;Services:&lt;/P&gt;
&lt;P data-angle="0" data-canvas-width="415.1162000000001" data-font-name="Times New Roman" style="font-size: 16.6px; font-family: sans-serif;"&gt;Licensee may use these services for internal evaluation and development purposes only. All licenses for ArcGIS Online Services are subject to these terms of use and any additional restrictions or requirements identified in the Documentation&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467937#M43370</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T02:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467938#M43371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Owen for the reply. I am new to arcgis. I saw the sample code and here is how it uses the service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; geometryService = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering what you mean by using proxy? Does it mean I can't use the url that way? If so could you point me to the right place? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467938#M43371</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T02:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467939#M43372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. That's what I figure. Could you share with me some articles on how I can set this up? I am new to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467939#M43372</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T02:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467940#M43373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html" title="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html"&gt;Using the proxy | Guide | ArcGIS API for JavaScript&lt;/A&gt;‌ page describes the cases in which you may require a proxy. However, having a proxy configured doesn't change the way that you create and use the geometry service in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would start by using some debugging tools to determine exactly why the request is failing. Can you post the URL to the published site?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467940#M43373</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-14T02:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467941#M43374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sure here is the documentation link for starting the geometry service from Desktop on your ArcGIS Server: &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004zs000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004zs000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004zs000000&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this one is for doing the same using ArcGIS Server Manager:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Starting_the_geometry_service_in_Manager/0154000004zq000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Starting_the_geometry_service_in_Manager/0154000004zq000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Starting_the_geometry_service_in_Manager/0154000004zq000000/&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467941#M43374</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T02:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467942#M43375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I have a question. I quickly read the document and it seems that I would need my own server machine to host this. Is it correct? If it is the case, then it is a problem for me since I host my site with a hosting service and there is no way they will allow me to do that on their server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467942#M43375</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T02:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467943#M43376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Owen, I inspected element using google chrom and here is the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;XMLHttpRequest cannot load &lt;/SPAN&gt;&lt;A class="webkit-html-external-link" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D" style="color: #545454; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;" target="_blank" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geomet…43794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D&lt;/A&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;. The 'Access-Control-Allow-Origin' header has a value '&lt;/SPAN&gt;&lt;A class="webkit-html-external-link" href="http://localhost/" style="color: #545454; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;" target="_blank" title="http://localhost"&gt;http://localhost:6179&lt;/A&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;' that is not equal to the supplied origin. &lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Origin '&lt;/SPAN&gt;&lt;A class="webkit-html-external-link" href="http://sim.pipetechnz.net/" style="color: #545454; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;" target="_blank" title="http://sim.pipetechnz.net"&gt;http://example.com&lt;/A&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;' is therefore not allowed access.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message seems to refer to localhost. Where can I change that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 03:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467943#M43376</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T03:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467944#M43377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like it's a cross site scripting issue. How are you accessing the rest end point, is it xhrRequest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below sample, implementation for button "Good" is one way of doing cross site request, implementation for bad is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14079935167001697 jive_text_macro" jivemacro_uid="_14079935167001697"&gt;
&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Simple Map&amp;lt;/title&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/js/esri/css/esri.css" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;style&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html, body, #map {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 100%;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 100%;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; margin: 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; body {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: #FFF;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflow: hidden;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; font-family: "Trebuchet MS";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/style&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require(["esri/map", "dojo/dom", "dojo/on", "dojo/io/script", "dojo/request/xhr","dojo/domReady!"], function(Map, dom, On, ioScript, xhr) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-122.45, 37.75], // longitude, latitude&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 13&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; On(dom.byId("good"), "click", function(evt) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ioScript.get({&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; callbackParamName: "callback",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; load: function (data) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; alert(data.geometries.length);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&amp;nbsp; error: function (error) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; alert("asdads");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; On(dom.byId("bad"), "click", function(evt) {&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; xhr("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; handleAs: "json"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }).then(function(data){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; alert(data.geometries.length);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }, function(err){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; alert("error");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="map"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;button id="good"&amp;gt;Good&amp;lt;/button&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;button id="bad"&amp;gt;Bad&amp;lt;/button&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 05:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467944#M43377</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-14T05:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467945#M43378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes this would require you to have ArcGIS Server and all of it's system requirements. Do you at least have a ArcGIS Organizational account where you are hosting your organizations data, and can satisfy the esri terms of use requirements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467945#M43378</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467946#M43379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I am still learning this. So please be patient with me here. I used asp.net and I learned how to code through the sample codes in &lt;A href="https://developers.arcgis.com/javascript/" title="https://developers.arcgis.com/javascript/"&gt;ArcGIS API for JavaScript&lt;/A&gt;‌. I have not run across any requirement about ArcGIS organizational account. Could you please explain a little bit more? What kind of organization data are we talking about here? All I need for my web application is the basemap and arcgis services. Do I need to host any data in this case? I would appreciate it if you could give me some real examples just to clear this up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467946#M43379</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T12:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467947#M43380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I can not do anything but provide the link to esri terms and conditions for use of Web Mapping APIs and ArcGIS Online Services:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/en/terms/" title="https://developers.arcgis.com/en/terms/"&gt;Terms of Use | ArcGIS for Developers&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These type of use questions have been asked on GIS Stack Exchange before:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/20276/is-the-arcgis-server-javascript-api-free-to-use" title="http://gis.stackexchange.com/questions/20276/is-the-arcgis-server-javascript-api-free-to-use"&gt;Is the ArcGIS Server JavaScript API free to use? - Geographic Information Systems Stack Exchange&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467947#M43380</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T13:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467948#M43381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one question about hosting organization data. What kind of data is it? What I have in mind is perhaps my company needs to some map of its own and then it would need to host that map data. But in my case, I don't need that yet. I only need the basemap from arcmap, which will be pull using the javascript api. So is it this data that you are referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467948#M43381</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T13:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467949#M43382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This would be any data that you need in your application that is not provided by one of esris online services already. Say you were wanting to show points on the map for where there is crime in your area. Well it is highly unlikely that esri will have a service with that type of data for your area, but if you did then you could take the data that you have and publish a map service of this data (either using your ArcGIS Server or your AGOL orgazational account).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467949#M43382</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T13:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467950#M43383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. In my case, I don't need that level of map yet. I just need a generic map which is pulled using the javascript api. I then projected my drawing on the fly. So actually I don't need to host any data don't I? My only concern now is the use of services on sampleserver. I know it is sampleserver, so there is limitations. Based on the article you shared, the api should be free since it is for non commercial use. Just wondering how I can avoid relying on the sampleserver. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:57:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467950#M43383</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T13:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467951#M43384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; here is a link to a 10.04 ArcGIS Server that is not a sample server.&lt;/P&gt;&lt;P&gt;&lt;A href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" title="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467951#M43384</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T14:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467952#M43385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, thanks for the link. It seems to work fine now. The map is loading fine. But when I inspected the code, I got this error. Any idea how to fix this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;XMLHttpRequest cannot load &lt;A class="webkit-html-external-link" href="http://tasks.arcgisonline.com/ArcGIS/rest/info?f=json" style="color: #545454;" target="_blank" title="http://tasks.arcgisonline.com/ArcGIS/rest/info?f=json"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/info?f=json&lt;/A&gt;. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;A class="webkit-html-external-link" href="http://sim.pipetechnz.net/" style="color: #545454;" target="_blank" title="http://sim.pipetechnz.net"&gt;http://example.com&lt;/A&gt;' is therefore not allowed access.&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 23:21:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467952#M43385</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T23:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467953#M43386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; That goes back to what Owen originally responded with. You may need to use a proxy. So the first thing you have to do is setup a proxy on your hosting service. Go to the &lt;A href="https://github.com/Esri/resource-proxy"&gt;esri GitHub Proxy Recource repository&lt;/A&gt; and download the flavor of Proxy that your hosting service will allow (asp.net, php, java, etc). Then go through the instructions for setting it up with server urls. Once that is done then you just look at that Link that Owen provided and add those line to specify your proxy url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 23:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467953#M43386</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-14T23:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Request error unable to load from http://sampleserver6....</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467954#M43387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Riyas I tested your code and it seems my problem has gone a way. Here is the jsfiddle I created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/hkr7cn1x/"&gt;http://jsfiddle.net/hkr7cn1x/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a few questions. In this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;A class="jive-link-external-small" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?f=json&amp;amp;outSR=102100&amp;amp;inSR=4326&amp;amp;geometries=%7B%22geometryType%22%3A%22esriGeometryPoint%22%2C%22geometries%22%3A%5B%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.04732347299239%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10538328709313%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%2C%7B%22x%22%3A174.10266423100921%2C%22y%22%3A-39.043794057776715%2C%22spatialReference%22%3A%7B%22wkid%22%3A4326%7D%7D%5D%7D&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just replace this line with this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is now working fine. I got another developer develop this for me and here are two lines from his code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; esriConfig.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps creating the proxy is way to go. If I don't want to use sampleserver, is there another server that I can use in production environment? Robert, in the previous comment share this link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still got the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;cross site scripting issue&lt;/SPAN&gt;. How can I modify this link?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 23:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-error-unable-to-load-from-http/m-p/467954#M43387</guid>
      <dc:creator>ryannz</dc:creator>
      <dc:date>2014-08-14T23:42:26Z</dc:date>
    </item>
  </channel>
</rss>

