I want to use the Directions widget in a custom app. I'm using 4.9. To avoid the prompt to sign in I'm setting up the proxy.
-Tested the DotNet proxy. It works.
-Put in the relevant code as such:
<SPAN class="token function">require</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="string token">"esri/core/urlUtils"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN>urlUtils<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
urlUtils<SPAN class="punctuation token">.</SPAN><SPAN class="token function">addProxyRule</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN>
urlPrefix<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"route.arcgis.com"</SPAN><SPAN class="punctuation token">,</SPAN>
proxyUrl<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"https://webapp.willcountyillinois.com/DotNet/proxy.ashx"</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Got the following error on Chrome console. The widget isn't working. Not sure why.
