<?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 CORS error when adding the web map to Experience Builder in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/cors-error-when-adding-the-web-map-to-experience/m-p/323776#M541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client is getting this error when he goes to experience builder to add data &amp;gt; select the web map created in ArcGIS Online &amp;gt; he got 'item does not exist or inaccessible' in experience builder. Developer tools shows CORS error in the console:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;Access to fetch at '&lt;/SPAN&gt;&lt;A data-value="https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/549?f=json" href="https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/549?f=json" rel="noopener noreferrer" style="color: var(--lwc-brandtextlink,#006dcc); background-color: #ffffff; text-decoration: none;" target="_blank" title=""&gt;https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/549?f=json&lt;/A&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;' from origin '&lt;/SPAN&gt;&lt;A data-value="https://experience.arcgis.com" href="https://experience.arcgis.com/" rel="noopener noreferrer" style="color: var(--lwc-brandtextlink,#006dcc); background-color: #ffffff; text-decoration: none;" target="_blank" title=""&gt;https://experience.arcgis.com&lt;/A&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value '&lt;/SPAN&gt;&lt;A data-value="https://governmentofbc.maps.arcgis.com" href="https://governmentofbc.maps.arcgis.com/" rel="noopener noreferrer" style="color: var(--lwc-brandtextlink,#006dcc); background-color: #ffffff; text-decoration: none;" target="_blank" title=""&gt;https://governmentofbc.maps.arcgis.com&lt;/A&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;- He is getting this error consistently in the browser&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;- I was able to replicate the issue at the beginning but it works if I try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;- There is no issue when he tested with sampleserver6 map service.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2020 04:22:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-09-23T04:22:47Z</dc:date>
    <item>
      <title>CORS error when adding the web map to Experience Builder</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/cors-error-when-adding-the-web-map-to-experience/m-p/323776#M541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client is getting this error when he goes to experience builder to add data &amp;gt; select the web map created in ArcGIS Online &amp;gt; he got 'item does not exist or inaccessible' in experience builder. Developer tools shows CORS error in the console:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;Access to fetch at '&lt;/SPAN&gt;&lt;A data-value="https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/549?f=json" href="https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/549?f=json" rel="noopener noreferrer" style="color: var(--lwc-brandtextlink,#006dcc); background-color: #ffffff; text-decoration: none;" target="_blank" title=""&gt;https://maps.gov.bc.ca/arcserver/rest/services/mpcm/bcgwpub/MapServer/549?f=json&lt;/A&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;' from origin '&lt;/SPAN&gt;&lt;A data-value="https://experience.arcgis.com" href="https://experience.arcgis.com/" rel="noopener noreferrer" style="color: var(--lwc-brandtextlink,#006dcc); background-color: #ffffff; text-decoration: none;" target="_blank" title=""&gt;https://experience.arcgis.com&lt;/A&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value '&lt;/SPAN&gt;&lt;A data-value="https://governmentofbc.maps.arcgis.com" href="https://governmentofbc.maps.arcgis.com/" rel="noopener noreferrer" style="color: var(--lwc-brandtextlink,#006dcc); background-color: #ffffff; text-decoration: none;" target="_blank" title=""&gt;https://governmentofbc.maps.arcgis.com&lt;/A&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;- He is getting this error consistently in the browser&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;- I was able to replicate the issue at the beginning but it works if I try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;- There is no issue when he tested with sampleserver6 map service.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" dir="ltr" style="color: #080707; background-color: #ffffff;"&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/cors-error-when-adding-the-web-map-to-experience/m-p/323776#M541</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-23T04:22:47Z</dc:date>
    </item>
  </channel>
</rss>

