<?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: Layer is using proxy when set to visible and it shouldn't use it [URL does not match with Proxy Rules] [ArcGIS JS API 4.12] in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-is-using-proxy-when-set-to-visible-and-it/m-p/505222#M46930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What about the servers that are configured in your Proxies proxy.config? Do you have a generic&amp;nbsp;http://qa.connect.calamp.com with a matchAll = true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jul 2019 02:45:42 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-07-13T02:45:42Z</dc:date>
    <item>
      <title>Layer is using proxy when set to visible and it shouldn't use it [URL does not match with Proxy Rules] [ArcGIS JS API 4.12]</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-is-using-proxy-when-set-to-visible-and-it/m-p/505221#M46929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, what I am doing it so simple, I created html page to load a web map from a portal and added the layer list widget, I have implemented security process (Proxy), I am setting the configutration to 'esri/confi' and&amp;nbsp; the proxy rules to 'esri/core/urlUtils', when I am setting this layer to visible in the view this layer is trying to use the proxy even if the url not match with the proxy rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proxy configuration:&lt;BR /&gt; esriConfig.portalUrl = 'https://devgis.connect.calamp.com/portal/sharing/content/items';&lt;BR /&gt; esriConfig.request.proxyUrl = "https://devgis.connect.calamp.com/qa-arcgis-proxy/proxy.ashx";&lt;BR /&gt; urlUtils.addProxyRule({&lt;BR /&gt; &lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;urlPrefix: "devgis.connect.calamp.com/server/rest/services/QA",&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proxyUrl: "https://devgis.connect.calamp.com/qa-arcgis-proxy/proxy.ashx"&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt; });&lt;BR /&gt; esriConfig.request.trustedServers.push("devgis.connect.calamp.com");&lt;BR /&gt; &lt;BR /&gt;Current Query: [Incorrect]&lt;BR /&gt;&lt;A href="https://devgis.connect.calamp.com/qa-arcgis-proxy/proxy.ashx?http://qa.connect.calamp.com/twc/radar/2/2/1/f604af232a9a41c784af232a9a21c73f"&gt;https://devgis.connect.calamp.com/qa-arcgis-proxy/proxy.ashx?http://qa.connect.calamp.com/twc/radar/2/2/1/f604af232a9a41c784af232a9a21c73f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should be like this: [Correct]&lt;BR /&gt;&lt;A href="http://qa.connect.calamp.com/twc/radar/2/2/1/f604af232a9a41c784af232a9a21c73f"&gt;http://qa.connect.calamp.com/twc/radar/2/2/1/f604af232a9a41c784af232a9a21c73f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the URL Layer does not match with the proxy rules.. I wondering if I am missing something or it is a bug in 4.x.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please let me know if you have any idea!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2019 01:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-is-using-proxy-when-set-to-visible-and-it/m-p/505221#M46929</guid>
      <dc:creator>RoelGarcia</dc:creator>
      <dc:date>2019-07-13T01:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Layer is using proxy when set to visible and it shouldn't use it [URL does not match with Proxy Rules] [ArcGIS JS API 4.12]</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-is-using-proxy-when-set-to-visible-and-it/m-p/505222#M46930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What about the servers that are configured in your Proxies proxy.config? Do you have a generic&amp;nbsp;http://qa.connect.calamp.com with a matchAll = true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2019 02:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-is-using-proxy-when-set-to-visible-and-it/m-p/505222#M46930</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-13T02:45:42Z</dc:date>
    </item>
  </channel>
</rss>

