<?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: Directions Widget Configure Proxy we have subscription in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637420#M59562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had some success using a dynamic token in my proxy following this older forum post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=297001" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=297001&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the relevant code snippet, see if this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;!-- serverUrl options:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url = location of the ArcGIS Server, either specific URL or stem
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = true to forward any request beginning with the url
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = (optional) token to include for secured service
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken = if true, gets token dynamically with username and
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password stored in this file.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = the secured user's username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password = the password for the username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host = the machine name that is hosting the map service
 --&amp;gt;


&amp;lt;serverUrl url="http://route.arcgis.com/arcgis/rest/services"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host="host_name"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName="userName"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password="password"&amp;gt;
&amp;lt;/serverUrl&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:05:37 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-12-12T03:05:37Z</dc:date>
    <item>
      <title>Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637411#M59553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are trying to add the directions widget to our javascript website.&amp;nbsp; I am using the new 3.4 api.&amp;nbsp; I have the directions widget showing up in a content pane.&amp;nbsp; I can enter addresses in the widget.&amp;nbsp;&amp;nbsp; I know it is a "paid" subscription service.&amp;nbsp; We have paid for the service.&amp;nbsp; Everything keeps pointing me to a proxy page.&amp;nbsp; I have downloaded the appropriate proxy for .net, I have added the proxy app to my IIS.&amp;nbsp; I think I have configured the proxy.config file with the correct information for obtaining the token, but I am not really sure.&amp;nbsp; Here is where I am getting lost.&amp;nbsp; Anyone familiar with setting this up?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 16:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637411#M59553</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2013-04-08T16:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637412#M59554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What have you done in your proxy config to create the token?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 19:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637412#M59554</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2013-04-09T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637413#M59555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i just tried standing up our published sample on my own machine, and made sure to reference my own proxy (without bothering to embed a token or credentials in the proxy.config).&amp;nbsp; this caused a security prompt to display in the application when I attempted to calculate a route, which gave me the opportunity to supply my ArcGIS for Organization credentials and get a successful result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23350[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what happens on your side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you take a look at the network traffic and check for 404,403 errors etc.?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 20:28:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637413#M59555</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-04-09T20:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637414#M59556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used a proxy on my remote server and get an internal error that I have not looked into yet.&amp;nbsp; I'll use a local proxy and see if I have better success&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 20:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637414#M59556</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2013-04-09T20:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637415#M59557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, that is what I am not sure of, correctly setting up the proxy.&amp;nbsp; Here is what I have in the proxy.config file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch: true to only proxy to sites listed, false to proxy to any site --&amp;gt;&lt;BR /&gt;&amp;lt;ProxyConfig mustMatch="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- serverUrl options:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url = location of the ArcGIS Server, either specific URL or stem&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = true to forward any request beginning with the url&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = (optional) token to include for secured service&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken = if true, gets token dynamically with username and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password stored in web.config file's appSettings section.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;BR /&gt; &amp;lt;serverUrl url="https://www.arcgis.com/sharing/generateToken?parameters"&lt;BR /&gt; matchAll="true"&lt;BR /&gt;userName="our city username is entered here"&lt;BR /&gt;password="our city password is entered here"&lt;BR /&gt;referer="http://localhost/fwbjava/default.html"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;BR /&gt;expiration="1440"&lt;BR /&gt;f="json"&lt;BR /&gt;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone that uses our application will be on our network (either directly or via vpn) - it is not open to public - I do NOT want them to have to enter a username and password, especially those that are travelling in the fire engine responding to a call &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 12:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637415#M59557</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2013-04-10T12:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637416#M59558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I changed these items:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Proxy config file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch: true to only proxy to sites listed, false to proxy to any site --&amp;gt;&lt;BR /&gt;&amp;lt;ProxyConfig mustMatch="true"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- serverUrl options:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url = location of the ArcGIS Server, either specific URL or stem&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = true to forward any request beginning with the url&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = (optional) token to include for secured service&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken = if true, gets token dynamically with username and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password stored in web.config file's appSettings section.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;gt;&lt;BR /&gt; &amp;lt;serverUrl url="https://www.arcgis.com/sharing/generateToken?parameters"&lt;BR /&gt; matchAll="true"&lt;BR /&gt;dynamicToken = "true"&lt;BR /&gt;referer="http://localhost/fwbjava/default.html"&amp;gt;&amp;lt;/serverUrl&amp;gt;&lt;BR /&gt;expiration="1440"&lt;BR /&gt;f="json"&lt;BR /&gt;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;web.config file in same proxy folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;userName="city username"&lt;BR /&gt;password="city password"&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Firebug I can see the 404 Not Found error for this URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;callback=dojo.io.script.jsonp_dojoIoScript107._jsonpCallback&lt;BR /&gt;directionsLanguage=en&lt;BR /&gt;directionsLengthUnits=esriNAUMiles&lt;BR /&gt;directionsOutputType=esriDOTComplete&lt;BR /&gt;findBestSequence=false&lt;BR /&gt;&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?f=json"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?f=json&lt;/A&gt;&lt;BR /&gt;outSR=102100&lt;BR /&gt;returnBarriers=false&lt;BR /&gt;returnDirections=true&lt;BR /&gt;returnPolygonBarriers=false&lt;BR /&gt;returnPolylineBarriers=false&lt;BR /&gt;returnRoutes=false&lt;BR /&gt;returnStops=false&lt;BR /&gt;stops={"type":"features","features":[{"geometry":{"x":-9642517.808238365,"y":3557110.1926639024,"spatialReference":{"wkid":102100}},"attributes":{"address":"51 Silva Dr NW, Fort Walton Beach, FL, 32548"}},{"geometry":{"x":-9642459.852759078,"y":3555678.421692784,"spatialReference":{"wkid":102100}},"attributes":{"address":"105 Miracle Strip Pky Sw, Fort Walton Beach, FL, 32548"}}],"doNotLocateOnRestrictedElements":true}&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is in my js app:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;esri.addProxyRule({&lt;BR /&gt;&amp;nbsp; urlPrefix : "route.arcgis.com",&lt;BR /&gt;&amp;nbsp; proxyUrl : "/proxy"&lt;BR /&gt; });&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I have something configured wrong in the Proxy, just wish I could find a book for dummies on how to set it up &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 12:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637416#M59558</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2013-04-10T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637417#M59559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i still haven't figured out how to get my proxy to generate a token dynamically, but i was able to hard-code a long term token generated using a referrer and confirm that it allowed me to route without authenticating in my app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;these are the steps i used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; ensured that the following two urls are listed as acceptable in my proxy.config &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;serverUrl url="http://route.arcgis.com/arcgis/rest/services/"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serverUrl&amp;gt;
&amp;lt;serverUrl url="http://www.arcgis.com/sharing/"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serverUrl&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; run the app and allow the identity manager to challenge and force a request to generate a token&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; intercept the request in fiddler, right click, select "replay" and then "reissue and edit"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*this gives you a chance to specify a longer timeout and alter the referrer if desired&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp; place this new token in the proxy.config&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;serverUrl url="http://route.arcgis.com/arcgis/rest/services/"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token="myreallylongtoken"&amp;gt;
&amp;lt;/serverUrl&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;5.&amp;nbsp; afterward my app routed without a challenge&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this process would be quite a bit more straightforward if there were a webpage where you could go to POST a request for a long-term token, but im guessing they disabled this option to minimize the proliferation of tokens (since this could deplete service credits)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637417#M59559</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-12T03:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637418#M59560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was working on the proxy page error for past few days. tried to reconfigure .net on IIS. No luck. Were you able to solve the 404 error. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 15:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637418#M59560</guid>
      <dc:creator>saraemani</dc:creator>
      <dc:date>2013-05-22T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637419#M59561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;i still haven't figured out how to get my proxy to generate a token dynamically, but i was able to hard-code a long term token generated using a referrer and confirm that it allowed me to route without authenticating in my app.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey John, I also was trying to use the dynamicToken option in the proxy config, but looking at the aspx there is no code in there to use that. It would be nice if the proxy created a short lived token using the web.config appSettings (like the config directions say). I'd rather not have to create long-lived tokens.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 19:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637419#M59561</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2013-06-17T19:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Configure Proxy we have subscription</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637420#M59562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had some success using a dynamic token in my proxy following this older forum post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=297001" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=297001&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the relevant code snippet, see if this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;!-- serverUrl options:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url = location of the ArcGIS Server, either specific URL or stem
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll = true to forward any request beginning with the url
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = (optional) token to include for secured service
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken = if true, gets token dynamically with username and
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password stored in this file.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = the secured user's username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password = the password for the username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host = the machine name that is hosting the map service
 --&amp;gt;


&amp;lt;serverUrl url="http://route.arcgis.com/arcgis/rest/services"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamicToken="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host="host_name"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName="userName"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password="password"&amp;gt;
&amp;lt;/serverUrl&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-configure-proxy-we-have/m-p/637420#M59562</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-12-12T03:05:37Z</dc:date>
    </item>
  </channel>
</rss>

