<?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: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379206#M35196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sampleserver1 doesn't support CORS so you're out of luck. (also, you should only have a cross domain problem when the resulting URL will be more than 2000 characters long, in which case a POST request is made. If it's less a JSONP request is made which won't suffer from cross domain issues)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2015 18:44:24 GMT</pubDate>
    <dc:creator>HeikoHeijenga</dc:creator>
    <dc:date>2015-01-09T18:44:24Z</dc:date>
    <item>
      <title>How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379203#M35193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE height="0" style="width: 37px; height: 0px;"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Hello &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use a javascript locator object with a geocode server of ArcGIS Online: &lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_EU/GeocodeServer" rel="nofollow"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_EU/GeocodeServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I call the method &lt;CODE&gt;locator.addressToLocations(options)&lt;/CODE&gt;, I get the cross-domain problem.&lt;/P&gt;&lt;P&gt;Is there a way to avoid this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 15:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379203#M35193</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2015-01-09T15:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379204#M35194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a similar issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/71260/esri-proxy-page-not-working-properly-cors-cross-domain-scripting" title="http://gis.stackexchange.com/questions/71260/esri-proxy-page-not-working-properly-cors-cross-domain-scripting"&gt;arcgis server - ESRI proxy page not working properly + CORS + cross domain scripting - Geographic Information Systems St…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 16:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379204#M35194</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-01-09T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379205#M35195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ArcGIS Online services exclusively. I don't have a server. So I can't create a server proxy. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 16:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379205#M35195</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2015-01-09T16:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379206#M35196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sampleserver1 doesn't support CORS so you're out of luck. (also, you should only have a cross domain problem when the resulting URL will be more than 2000 characters long, in which case a POST request is made. If it's less a JSONP request is made which won't suffer from cross domain issues)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 18:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379206#M35196</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2015-01-09T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379207#M35197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;loc = new Locator("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var address = {"Single Line Input": "100 main street"};&lt;/P&gt;&lt;P&gt;var params = {address: address};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;loc.outSpatialReference= map.spatialReference;&lt;/P&gt;&lt;P&gt;loc.addressToLocations(params, function(e){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("success: " + e);&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;function(e){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("error: " + e);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get in the console the cross-domain warning saying that the request was blocked.&lt;/P&gt;&lt;P&gt;I get also "success: ". Which mean that e is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 09:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379207#M35197</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2015-01-12T09:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379208#M35198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try to add crossdomain.xml in your webserver and your project ? try this option..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 10:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379208#M35198</guid>
      <dc:creator>Venkata_RaoTammineni</dc:creator>
      <dc:date>2015-01-12T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379209#M35199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing using salesforce and ArcGIS Online. I don't have access to any webserver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 11:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379209#M35199</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2015-01-12T11:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid Cross Domain problem when trying to use ArcGIS Online Geocode server?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379210#M35200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have a cross domain problem... The fact that you get a "success: " mean your request came through but the geocoder just didn't find a match. The geocoder you use doesn't support single line address input. See &lt;A href="http://jsfiddle.net/Heiko/np6k5rLs/4/" title="http://jsfiddle.net/Heiko/np6k5rLs/4/"&gt;Locator - JSFiddle&lt;/A&gt;&amp;nbsp; for a working example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 16:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-avoid-cross-domain-problem-when-trying-to/m-p/379210#M35200</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2015-01-12T16:32:07Z</dc:date>
    </item>
  </channel>
</rss>

