<?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: CORS Support on services.arcgisonline.com? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394316#M19709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;services.arcgisonline.com doesn't currently support CORS, but will once migrated to ArcGIS Server 10.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I was told, however, CORS is not required for this. You should be able to use jsonp. Does that make sense to you? If not, try posting in this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript"&gt;http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 17:08:05 GMT</pubDate>
    <dc:creator>MikeMinami</dc:creator>
    <dc:date>2012-03-19T17:08:05Z</dc:date>
    <item>
      <title>CORS Support on services.arcgisonline.com?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394315#M19708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I often have javascript web applications that want to use tiled services from &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;, but before using them I would like to get some tiling and copyright information. Generally, I would do that by first issuing a request like &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer?f=json" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer?f=json&lt;/A&gt;&lt;SPAN&gt;, and parsing the response to find the tiling information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trouble is that because my web application is on one server, and the services are on another, the web browser viewing my application will not make the request:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;GET http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServerf=json 404 (Not Found)
XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServerf=json. Origin http://bukovite is not allowed by Access-Control-Allow-Origin.
leaflet-custom.js:6Uncaught TypeError: Cannot call method 'replace' of undefined&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a cross-origin request issue, and modern web browsers will allow such requests if the server the request is sent to returns the following header: &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Access-Control-Allow-Origin: *&lt;/PRE&gt;&lt;SPAN&gt;. See &lt;/SPAN&gt;&lt;A href="http://enable-cors.org/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://enable-cors.org/&lt;/A&gt;&lt;SPAN&gt; for more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any chance that at some point in the future, the servers at &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt; might allow CORS requests?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394315#M19708</guid>
      <dc:creator>RyanClark</dc:creator>
      <dc:date>2021-12-11T18:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Support on services.arcgisonline.com?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394316#M19709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;services.arcgisonline.com doesn't currently support CORS, but will once migrated to ArcGIS Server 10.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I was told, however, CORS is not required for this. You should be able to use jsonp. Does that make sense to you? If not, try posting in this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript"&gt;http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 17:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394316#M19709</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2012-03-19T17:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Support on services.arcgisonline.com?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394317#M19710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;From what I was told, however, CORS is not required for this. You should be able to use jsonp.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, I was able to make it work with jsonp, but it is somewhat clumsier to code in this situation. Good to hear that CORS will be supported in the not-too-distant future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394317#M19710</guid>
      <dc:creator>RyanClark</dc:creator>
      <dc:date>2012-03-20T22:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Support on services.arcgisonline.com?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394318#M19711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry to revive an old thread.&amp;nbsp; I have a similar problem, except that I want to use the actual tiled images in a scene rendered with WebGL.&amp;nbsp; Unfortunately, WebGL cannot display images unless they were loaded from the same origin or retrieved through a successful CORS request.&amp;nbsp; So, is there a timeframe for upgrading services.arcgisonline.com to 10.1?&amp;nbsp; If it affects the answer at all, I'm actually more interested in CORS-enabled access to the beta World Elevation services (&lt;/SPAN&gt;&lt;A href="https://elevation.arcgisonline.com"&gt;https://elevation.arcgisonline.com&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; If it's going to be awhile before these servers are upgraded, is there any chance of adding the necessary header to the existing servers?&amp;nbsp; From what I understand, it should be quite easy to do.&amp;nbsp; The link in the original post has more information: &lt;/SPAN&gt;&lt;A href="http://enable-cors.org/"&gt;http://enable-cors.org/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 01:43:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/cors-support-on-services-arcgisonline-com/m-p/394318#M19711</guid>
      <dc:creator>KevinRing</dc:creator>
      <dc:date>2012-06-08T01:43:16Z</dc:date>
    </item>
  </channel>
</rss>

