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]

07-12-2019 06:07 PM
New Contributor III

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  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.

Proxy configuration:
esriConfig.portalUrl = '';
esriConfig.request.proxyUrl = "";
     urlPrefix: "",
     proxyUrl: ""

Current Query: [Incorrect]

Should be like this: [Correct]

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.

Please let me know if you have any idea!!

0 Kudos
1 Reply
MVP Esteemed Contributor


   What about the servers that are configured in your Proxies proxy.config? Do you have a generic with a matchAll = true?

0 Kudos