<?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: Proxy issue while using Esri WFSLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-issue-while-using-esri-wfslayer/m-p/1015520#M71355</link>
    <description>&lt;P&gt;I came to know that both proxy and application has to be on same domain. But as I mentioned, I cannot use jsp/asp/php proxy code in the same domain where my application is running. Can someone please confirm is there any other ways to set up proxy for using the WFSLayer?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 14:14:32 GMT</pubDate>
    <dc:creator>kattoor</dc:creator>
    <dc:date>2021-01-11T14:14:32Z</dc:date>
    <item>
      <title>Proxy issue while using Esri WFSLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-issue-while-using-esri-wfslayer/m-p/1012846#M71234</link>
      <description>&lt;P&gt;I have a requirement to access WFS services (using Esri/WfsLayer) which are hosted in remote servers and I have to use Esri provided &lt;A href="https://github.com/Esri/resource-proxy/releases" target="_self"&gt;proxy code&lt;/A&gt; due to CORS policy issues.&lt;/P&gt;&lt;P&gt;My application is deployed in &lt;STRONG&gt;domain1.com&lt;/STRONG&gt; and I am planning to deploy the proxy service in &lt;STRONG&gt;domain2.com&lt;/STRONG&gt;. And then trying to access the remote server from &lt;STRONG&gt;domain1.com&lt;/STRONG&gt; via proxy service hosted in &lt;STRONG&gt;domain2.com&lt;/STRONG&gt;. I was trying with this approach, but couldn't achieve it using the codebase given &lt;A href="https://github.com/Esri/resource-proxy/releases" target="_self"&gt;here(jsp)&lt;/A&gt; . I am getting the same CORS issue with this.&lt;/P&gt;&lt;P&gt;Could anyone confirm if this is possible to do?&lt;/P&gt;&lt;P&gt;Because the &lt;STRONG&gt;proxy requests works fine if both application and proxy services are deployed in the same domain&lt;/STRONG&gt; (I tested the same using sample application). But unfortunately I cannot deploy the proxy code in the same domain where my application is deployed.&lt;/P&gt;&lt;P&gt;My Proxy.config is as follows:&lt;/P&gt;&lt;P&gt;&amp;lt;ProxyConfig allowedReferers="*" logFile="proxy_log.log" logLevel="INFO" mustMatch="true"&amp;gt; &amp;lt;serverUrls&amp;gt; &amp;lt;serverUrl url="https://xxxxxxx/arcgis/services/xxxxx/MapServer/WFSServer" matchAll="true"/&amp;gt; &amp;lt;/serverUrls&amp;gt; &amp;lt;/ProxyConfig&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 11:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-issue-while-using-esri-wfslayer/m-p/1012846#M71234</guid>
      <dc:creator>kattoor</dc:creator>
      <dc:date>2020-12-30T11:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy issue while using Esri WFSLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-issue-while-using-esri-wfslayer/m-p/1015520#M71355</link>
      <description>&lt;P&gt;I came to know that both proxy and application has to be on same domain. But as I mentioned, I cannot use jsp/asp/php proxy code in the same domain where my application is running. Can someone please confirm is there any other ways to set up proxy for using the WFSLayer?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 14:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proxy-issue-while-using-esri-wfslayer/m-p/1015520#M71355</guid>
      <dc:creator>kattoor</dc:creator>
      <dc:date>2021-01-11T14:14:32Z</dc:date>
    </item>
  </channel>
</rss>

