<?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: No 'Access-Control-Allow-Origin' header is present on the requested resource in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215586#M78803</link>
    <description>&lt;P&gt;how to use proxy in this case? &lt;SPAN&gt;require([&lt;/SPAN&gt;&lt;SPAN&gt;"esri/map",...&amp;nbsp; &amp;nbsp;not sure how to add a proxy in between yet.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 16:24:09 GMT</pubDate>
    <dc:creator>billzhang</dc:creator>
    <dc:date>2022-09-23T16:24:09Z</dc:date>
    <item>
      <title>No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215352#M78786</link>
      <description>&lt;P&gt;In my html page I have the following script to pull the base map from ESRI Online. This page is hosted on a web server locally. I am getting the following error how. Could people help me address this issue? Thank you&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Access to XMLHttpRequest at '&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json" target="_blank" rel="noopener"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&lt;/A&gt;' from origin 'http://...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javascript in the HTML file:&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;var map;&lt;BR /&gt;require([&lt;BR /&gt;"dojo/parser",&lt;BR /&gt;"dojo/ready",&lt;BR /&gt;"dojo/_base/array",&lt;BR /&gt;"esri/Color",&lt;BR /&gt;"dojo/dom-style",&lt;BR /&gt;"dojo/query",&lt;/P&gt;&lt;P&gt;"esri/map",&lt;BR /&gt;"esri/request",&lt;BR /&gt;"esri/graphic",&lt;BR /&gt;"esri/geometry/Extent",&lt;/P&gt;&lt;P&gt;"esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt;"esri/symbols/SimpleFillSymbol",&lt;BR /&gt;"esri/symbols/PictureMarkerSymbol",&lt;BR /&gt;"esri/renderers/ClassBreaksRenderer",&lt;/P&gt;&lt;P&gt;"esri/layers/ArcGISDynamicMapServiceLayer",&lt;BR /&gt;"esri/layers/ImageParameters",&lt;BR /&gt;"esri/layers/GraphicsLayer",&lt;BR /&gt;"esri/SpatialReference",&lt;BR /&gt;"esri/InfoTemplate",&lt;BR /&gt;"esri/geometry/Point",&lt;BR /&gt;"esri/geometry/webMercatorUtils",&lt;BR /&gt;&lt;BR /&gt;"extras/AssetClusterLayer",&lt;BR /&gt;"dojo/dom",&lt;BR /&gt;"esri/dijit/BasemapToggle",&lt;BR /&gt;"esri/dijit/HomeButton",&lt;/P&gt;&lt;P&gt;"dijit/layout/BorderContainer",&lt;BR /&gt;"dijit/layout/ContentPane",&lt;BR /&gt;"dojo/domReady!"&lt;BR /&gt;], function(&lt;BR /&gt;parser, ready, arrayUtils, Color, domStyle, query,&lt;BR /&gt;Map, esriRequest, Graphic, Extent,&lt;BR /&gt;SimpleMarkerSymbol, SimpleFillSymbol, PictureMarkerSymbol, ClassBreaksRenderer,&lt;BR /&gt;ArcGISDynamicMapServiceLayer, ImageParameters, GraphicsLayer, SpatialReference, InfoTemplate, Point, webMercatorUtils,&lt;BR /&gt;AssetClusterLayer, dom, BasemapToggle, HomeButton&lt;BR /&gt;) {&lt;BR /&gt;ready(function() {&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 00:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215352#M78786</guid>
      <dc:creator>billzhang</dc:creator>
      <dc:date>2022-09-23T00:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215499#M78792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not sure but try using proxy,for same error when using WMS it works , try in tis case too.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215499#M78792</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-09-23T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215514#M78797</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/369542"&gt;@billzhang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To support CORS, your web servers must be pre-configured for it and browsers must be able to support it. Sounds like the local web server mahy need to have CORS enabled. For additional details on enabling this in a web server, please visit&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enable-cors.org/" target="_blank"&gt;enable-cors.org&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For more information about the API and CORS, see the following documentation:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/cors/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/cors/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 14:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215514#M78797</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2022-09-23T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215577#M78802</link>
      <description>&lt;P&gt;Maybe try using "https" in the URL instead of "http"...&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215577#M78802</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-09-23T16:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215586#M78803</link>
      <description>&lt;P&gt;how to use proxy in this case? &lt;SPAN&gt;require([&lt;/SPAN&gt;&lt;SPAN&gt;"esri/map",...&amp;nbsp; &amp;nbsp;not sure how to add a proxy in between yet.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215586#M78803</guid>
      <dc:creator>billzhang</dc:creator>
      <dc:date>2022-09-23T16:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215587#M78804</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;require([&lt;/SPAN&gt;&lt;SPAN&gt;"esri/map",...&amp;nbsp; &amp;nbsp;not sure how to use https for the esri online URL. any thoughts?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215587#M78804</guid>
      <dc:creator>billzhang</dc:creator>
      <dc:date>2022-09-23T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: No 'Access-Control-Allow-Origin' header is present on the requested resource</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215787#M78817</link>
      <description>&lt;P&gt;trying to reach&amp;nbsp;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json" target="_blank" rel="noopener nofollow noreferrer"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The web server side to be configured is the arcgisonline side right?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 23:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-access-control-allow-origin-header-is-present/m-p/1215787#M78817</guid>
      <dc:creator>billzhang</dc:creator>
      <dc:date>2022-09-23T23:12:17Z</dc:date>
    </item>
  </channel>
</rss>

