<?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 WMS layer from GEOSERVER in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-error-when-adding-wms-layer-from-geoserver/m-p/1152049#M76608</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I still have CORS error&amp;nbsp; when i try to add WMS layer from GeoServer. I followed this resources&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/proxies/," target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/proxies/,&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/resource-proxy," target="_blank" rel="noopener"&gt;https://github.com/Esri/resource-proxy,&lt;/A&gt;&amp;nbsp;but still can not get result.&lt;/P&gt;&lt;P&gt;So i used code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; urlUtils.addProxyRule({
    urlPrefix: "http://nv1.reestri.gov.ge",
    proxyUrl: "/proxy/java/proxy.php"
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and get following results in console:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;GET&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="http://localhost/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities" target="_blank" rel="noopener"&gt;http://localhost/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities: &lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;under this i have this:&lt;/P&gt;&lt;H3&gt;HTTP Error 404.0 - Not Found.&lt;/H3&gt;&lt;P&gt;Next is:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Uncaught (in promise)&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Object&lt;/SPAN&gt;&lt;SPAN class=""&gt; { &lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"request:server"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;details&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;…&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Unable to load &lt;A title="http://10.0.124.10/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities" href="http://10.0.124.10/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities" target="_blank" rel="noopener noreferrer"&gt;http://localhost/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/A&gt; status: 404"&lt;/SPAN&gt;&lt;SPAN class=""&gt; };&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;What can i do, or if it is possible to fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 08:07:26 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2022-03-09T08:07:26Z</dc:date>
    <item>
      <title>CORS error when adding WMS layer from GEOSERVER</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-error-when-adding-wms-layer-from-geoserver/m-p/1152049#M76608</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I still have CORS error&amp;nbsp; when i try to add WMS layer from GeoServer. I followed this resources&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/proxies/," target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/proxies/,&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/resource-proxy," target="_blank" rel="noopener"&gt;https://github.com/Esri/resource-proxy,&lt;/A&gt;&amp;nbsp;but still can not get result.&lt;/P&gt;&lt;P&gt;So i used code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; urlUtils.addProxyRule({
    urlPrefix: "http://nv1.reestri.gov.ge",
    proxyUrl: "/proxy/java/proxy.php"
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and get following results in console:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;GET&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="http://localhost/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities" target="_blank" rel="noopener"&gt;http://localhost/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities: &lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;under this i have this:&lt;/P&gt;&lt;H3&gt;HTTP Error 404.0 - Not Found.&lt;/H3&gt;&lt;P&gt;Next is:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Uncaught (in promise)&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Object&lt;/SPAN&gt;&lt;SPAN class=""&gt; { &lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"request:server"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;details&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;…&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Unable to load &lt;A title="http://10.0.124.10/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities" href="http://10.0.124.10/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities" target="_blank" rel="noopener noreferrer"&gt;http://localhost/proxy/java/proxy.php?http://nv1.reestri.gov.ge/geoserver/wms?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/A&gt; status: 404"&lt;/SPAN&gt;&lt;SPAN class=""&gt; };&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;What can i do, or if it is possible to fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 08:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-error-when-adding-wms-layer-from-geoserver/m-p/1152049#M76608</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-03-09T08:07:26Z</dc:date>
    </item>
  </channel>
</rss>

