<?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: Facing errors while requesting for routing service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587857#M54906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanket,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You use username and password or clientid and appsecret not both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 19:11:34 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-11-24T19:11:34Z</dc:date>
    <item>
      <title>Facing errors while requesting for routing service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587854#M54903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the sample code for Routing task to check before I buy. I have set up the proxy server and I'm giving some hardcoded latitude - longitude pairs in the code instead of clicking on the map.&lt;/P&gt;&lt;P&gt;I am able to see the routes for 11 points successfully but if i input more than 11 points, I am facing the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response for preflight has invalid HTTP status code 403 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reason: CORS header 'Access-Control-Allow-Origin' missing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp; How do I use CORS in the code?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/tag/routing services/tg-p"&gt;#routing services&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/javascript app/tg-p"&gt;#javascript app&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 11:57:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587854#M54903</guid>
      <dc:creator>SanketPimple</dc:creator>
      <dc:date>2016-11-23T11:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Facing errors while requesting for routing service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587855#M54904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanket,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you verified that you are making requests through the proxy. The reason I ask is you normally do not have to worry about CORs when using a proxy. Can you share your code for review?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587855#M54904</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-23T13:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Facing errors while requesting for routing service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587856#M54905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes I'm using a proxy.&lt;/DIV&gt;&lt;DIV&gt;Below is the proxy.config file&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;ProxyConfig allowedReferers="*"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logFile="proxy_log.log"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logLevel="INFO"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mustMatch="true"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;lt;serverUrl url="&lt;A data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=http://services.arcgisonline.com&amp;amp;source=gmail&amp;amp;ust=1480061879704000&amp;amp;usg=AFQjCNHrB1d87eMmGMUBz2_YqJdL1y2z8w" href="http://services.arcgisonline.com" target="_blank"&gt;http://services.arcgisonline.com&lt;/A&gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; matchAll="true"/&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&amp;lt;serverUrl url="&lt;A data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=http://route.arcgis.com&amp;amp;source=gmail&amp;amp;ust=1480061879704000&amp;amp;usg=AFQjCNFOTiItWDFusLTvYVv0KRUthHecSA" href="http://route.arcgis.com" target="_blank"&gt;http://route.arcgis.com&lt;/A&gt;"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt; &amp;nbsp; &amp;nbsp;clientId=&amp;lt;id&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt; &amp;nbsp; &amp;nbsp;clientSecret=&amp;lt;secret&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt; &amp;nbsp; &amp;nbsp;username="username"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt; &amp;nbsp; &amp;nbsp;password="password"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt; &amp;nbsp; &amp;nbsp;matchAll="true"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&amp;lt;/serverUrl&amp;gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;lt;!-- See &lt;A data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=https://github.com/Esri/resource-proxy&amp;amp;source=gmail&amp;amp;ust=1480061879704000&amp;amp;usg=AFQjCNGhEbLsAiTRaoPGK1VJT1pmWETTNA" href="https://github.com/Esri/resource-proxy" target="_blank"&gt;https://github.com/Esri/resource-proxy&lt;/A&gt; for more information --&amp;gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 08:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587856#M54905</guid>
      <dc:creator>SanketPimple</dc:creator>
      <dc:date>2016-11-24T08:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Facing errors while requesting for routing service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587857#M54906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanket,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You use username and password or clientid and appsecret not both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 19:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facing-errors-while-requesting-for-routing-service/m-p/587857#M54906</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-24T19:11:34Z</dc:date>
    </item>
  </channel>
</rss>

