I am trying to the solve the route between 2 points and immediately buffering the route geometry.
I can able to solve the route by using the "Esri/resource-proxy" [sourcehttps://github.com/Esri/resource-proxy/releases], changed the proxy config [with routing URL, client id and client secret] and added proxy rule in my code.
Proxy rule:
urlUtils.addProxyRule({
urlPrefix: "tasks.arcgisonline.com",
proxyUrl: "http://xyz/DotNet/proxy.ashx"
});
I have been prompted with ArcGIS online signin popup with user name and password,
After successful authentication, I am passing the route geometry to do and show buffer. But I am getting below exception
"Unable to load http://xyz/DotNet/proxy.ashx?http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer status: 0"
This time I am setting ""esriConfig.defaults.io.alwaysUseProxy = false", but still this request is using proxy
Question 1: How to get rid of sign in popup? I assumed given client Id and client secret will not prompt popup.
Question 2: How to make buffer request with proxy?
Thanks
Murali