<?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 Help! Unable to add webmap  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-unable-to-add-webmap/m-p/187369#M17378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to add a webmap but even in the sandbox I get&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fetch API cannot load https://tileservice.charts.noaa.gov/tiles/wmts/1.0.0/WMTSCapabilities.xml due to access control checks.&lt;BR /&gt;&lt;A href="https://tileservice.charts.noaa.gov/tiles/wmts/1.0.0/WMTSCapabilities.xml"&gt;https://tileservice.charts.noaa.gov/tiles/wmts/1.0.0/WMTSCapabilities.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Origin xxx is not allowed by Access-Control-Allow-Origin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var webmap = new WebMap({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "ec16ffd3c25b4e3d8af9c1bf9a14af08"&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2019 23:22:03 GMT</pubDate>
    <dc:creator>ChrisSnow</dc:creator>
    <dc:date>2019-12-17T23:22:03Z</dc:date>
    <item>
      <title>Help! Unable to add webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-unable-to-add-webmap/m-p/187369#M17378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to add a webmap but even in the sandbox I get&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fetch API cannot load https://tileservice.charts.noaa.gov/tiles/wmts/1.0.0/WMTSCapabilities.xml due to access control checks.&lt;BR /&gt;&lt;A href="https://tileservice.charts.noaa.gov/tiles/wmts/1.0.0/WMTSCapabilities.xml"&gt;https://tileservice.charts.noaa.gov/tiles/wmts/1.0.0/WMTSCapabilities.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Origin xxx is not allowed by Access-Control-Allow-Origin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var webmap = new WebMap({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "ec16ffd3c25b4e3d8af9c1bf9a14af08"&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 23:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-unable-to-add-webmap/m-p/187369#M17378</guid>
      <dc:creator>ChrisSnow</dc:creator>
      <dc:date>2019-12-17T23:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Unable to add webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-unable-to-add-webmap/m-p/187370#M17379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the 4x API is a bit more strict with cors and ssl than the 3x version (which is why I think it displays in the 3x based AGO Map Viewer). If you add a proxy to the mix, the wmts webmap displays fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resources:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/cors/index.html" title="https://developers.arcgis.com/javascript/latest/guide/cors/index.html"&gt;CORS with the API | ArcGIS API for JavaScript 4.14&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/noash/pen/BayWZKv" title="https://codepen.io/noash/pen/BayWZKv"&gt;https://codepen.io/noash/pen/BayWZKv&lt;/A&gt;&amp;nbsp; (codepen does not run, but if you supply a link to your proxy and run locally, it will work)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 23:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-unable-to-add-webmap/m-p/187370#M17379</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-12-19T23:43:41Z</dc:date>
    </item>
  </channel>
</rss>

