<?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 Issue when trying to access Public featurelayers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492225#M45689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/393823"&gt;Mohamed Mezian&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;What layer are you trying to add? Are you using their rest/services?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://cbrsgis.wim.usgs.gov/arcgis/rest/services/CoastalBarrierResourcesSystem/MapServer" title="https://cbrsgis.wim.usgs.gov/arcgis/rest/services/CoastalBarrierResourcesSystem/MapServer"&gt;CoastalBarrierResourcesSystem (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2020 22:07:50 GMT</pubDate>
    <dc:creator>RickeyFight</dc:creator>
    <dc:date>2020-02-19T22:07:50Z</dc:date>
    <item>
      <title>CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492224#M45688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We're using the Arcgis Map on our website with the 4.xx arcgis Javascript library, imported into Angular.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works on most maps but in some cases, while we are trying to load Public maps published by&amp;nbsp;&lt;A class="link-titled" href="https://www.coast.noaa.gov/" title="https://www.coast.noaa.gov/"&gt;NOAA Office for Coastal Management&lt;/A&gt;&amp;nbsp; we are getting a Cors error. Did they voluntarily block external domains from importing their featurelayer? Isn't their map public, so free to import on other maps ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:57:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492224#M45688</guid>
      <dc:creator>MohamedMezian1</dc:creator>
      <dc:date>2020-02-19T21:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492225#M45689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/393823"&gt;Mohamed Mezian&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;What layer are you trying to add? Are you using their rest/services?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://cbrsgis.wim.usgs.gov/arcgis/rest/services/CoastalBarrierResourcesSystem/MapServer" title="https://cbrsgis.wim.usgs.gov/arcgis/rest/services/CoastalBarrierResourcesSystem/MapServer"&gt;CoastalBarrierResourcesSystem (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 22:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492225#M45689</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2020-02-19T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492226#M45690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your prompt answer. I've tried importing this layer :&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;imageLayers&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;ImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;[]&amp;nbsp;=&amp;nbsp;[{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;url:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'https://www.coast.noaa.gov/arcgis/rest/services/dc_slr/Flood_Frequency/MapServer'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;title:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'Coastal&amp;nbsp;Flooding&amp;nbsp;Frequency'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 22:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492226#M45690</guid>
      <dc:creator>MohamedMezian1</dc:creator>
      <dc:date>2020-02-19T22:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492227#M45691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works in localhost&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 22:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492227#M45691</guid>
      <dc:creator>MohamedMezian1</dc:creator>
      <dc:date>2020-02-19T22:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492228#M45692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/393823"&gt;Mohamed Mezian&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I am not proficient in Angular.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you adding the layer properly? Is this layer an image layer?&lt;/P&gt;&lt;P&gt;how are you adding other layers to your map? Are you using an AGOL map?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to view the layer in a non angular map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 23:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492228#M45692</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2020-02-19T23:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492229#M45693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/367756"&gt;Mohamed Mezian&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have bad experience with Angular cors issue error before and it's turn out working perfectly in dojo and jquery.&lt;/P&gt;&lt;P&gt;And found out Angular http get/post payload and different domain preflight check working differently from other js framework. But I didn't manage to fix that time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, You might want to try with normal dojo and figure out whether it is really cors issue or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 01:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492229#M45693</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-20T01:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492230#M45694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your responses. What I don't get is other layers seem to load fine. And they work in localhost.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking that perhaps they have restricted domain names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 08:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492230#M45694</guid>
      <dc:creator>MohamedMezian1</dc:creator>
      <dc:date>2020-02-20T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: CORS Issue when trying to access Public featurelayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492231#M45695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/367756"&gt;Mohamed Mezian&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check&amp;nbsp;whether&amp;nbsp;you are using in mixed mode (http/https) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 12:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-issue-when-trying-to-access-public/m-p/492231#M45695</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-27T12:02:13Z</dc:date>
    </item>
  </channel>
</rss>

