<?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: Access-Control-Allow-Origin in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3795#M337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm experiencing a similar issue. I get a strange behavior, sometimes the browser is able to download the api from a different server than the one on which the web application is hosted,&amp;nbsp; on the contrary sometimes happen that it gets only some pieces of the&amp;nbsp; api (always from a different server then the web application) and the application doesn't work, I get the following message "Could not load cross-domain resources".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 14:57:14 GMT</pubDate>
    <dc:creator>demdeberanz</dc:creator>
    <dc:date>2012-08-28T14:57:14Z</dc:date>
    <item>
      <title>Access-Control-Allow-Origin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3792#M334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;XMLHttpRequest cannot load &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/info?f=json" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/info?f=json&lt;/A&gt;&lt;SPAN&gt;. Origin &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserverIP&amp;gt; is not allowed by Access-Control-Allow-Origin.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this in the console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've added &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;system.webServer&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;httpProtocol&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;customHeaders&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/customHeaders&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;/httpProtocol&amp;gt;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;to C:\inetpub\wwwroot\ArcGIS\rest\Web.Config&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and restarted server, as instructed by &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://enable-cors.org/" rel="nofollow" target="_blank"&gt;http://enable-cors.org/&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://alpascual.com/post/2011/06/08/Enabling-Cross-Origin-Resources-in-IIS-7.aspx" rel="nofollow" target="_blank"&gt;http://alpascual.com/post/2011/06/08/Enabling-Cross-Origin-Resources-in-IIS-7.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still get the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGS server 10.0 JSAPI 3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 13:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3792#M334</guid>
      <dc:creator>evanpicard</dc:creator>
      <dc:date>2012-08-28T13:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3793#M335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;read this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/60386-Access-Control-Allow-Origin-and-3.0?p=208466&amp;amp;viewfull=1#post208466" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/60386-Access-Control-Allow-Origin-and-3.0?p=208466&amp;amp;viewfull=1#post208466&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 13:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3793#M335</guid>
      <dc:creator>DavideLimosani</dc:creator>
      <dc:date>2012-08-28T13:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3794#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;read this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/60386-Access-Control-Allow-Origin-and-3.0?p=208466&amp;amp;viewfull=1#post208466"&gt;http://forums.arcgis.com/threads/60386-Access-Control-Allow-Origin-and-3.0?p=208466&amp;amp;viewfull=1#post208466&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sweet!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;easiest answer yet!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 13:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3794#M336</guid>
      <dc:creator>evanpicard</dc:creator>
      <dc:date>2012-08-28T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3795#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm experiencing a similar issue. I get a strange behavior, sometimes the browser is able to download the api from a different server than the one on which the web application is hosted,&amp;nbsp; on the contrary sometimes happen that it gets only some pieces of the&amp;nbsp; api (always from a different server then the web application) and the application doesn't work, I get the following message "Could not load cross-domain resources".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 14:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3795#M337</guid>
      <dc:creator>demdeberanz</dc:creator>
      <dc:date>2012-08-28T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3796#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am able to get away with the allow-control-allow-origin error by following this thread&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://alpascual.com/post/2011/06/08/Enabling-Cross-Origin-Resources-in-IIS-7.aspx"&gt;http://alpascual.com/post/2011/06/08/Enabling-Cross-Origin-Resources-in-IIS-7.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For JavaScript and CSS3 to access your website resources without having to post using proxies, CSS3 is now here to help. On your web application add on your web.config under system.webServer and all response to javascript will include that letting JavaScript know that is ok to post without the limitation and without using a proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;system.webServer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;httpProtocol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;customHeaders&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/customHeaders&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/httpProtocol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/system.webServer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcGIS 10 you can enable that by adding it to the web.config found at c:\inetpub\wwwroot\ArcGIS\rest\web.config&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3796#M338</guid>
      <dc:creator>ConnieLeung</dc:creator>
      <dc:date>2013-02-07T15:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3797#M339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One more hint, I had no luck with Firefox 24, but in Chrome 30 it worked, please have a look to the browser-possibilites in &lt;/SPAN&gt;&lt;A href="http://caniuse.com/cors"&gt;http://caniuse.com/cors&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/access-control-allow-origin/m-p/3797#M339</guid>
      <dc:creator>KaiB_</dc:creator>
      <dc:date>2013-10-18T07:30:10Z</dc:date>
    </item>
  </channel>
</rss>

