<?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: HTTP-referer tokens fails with secure services when files are served from file:// in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/http-referer-tokens-fails-with-secure-services/m-p/300996#M27610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this will help, but when downloading the JS API to use locally, it includes instructions on how to update the local JS API to map back to your particular server.&amp;nbsp; We've manipulated this portion of the API to work locally, so the JS isn't truely hosted anywhere besides the file system.&amp;nbsp; Maybe you could do something similar for your phonegap app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This updated area of the JS API also deals with the file: protocol, so you may be able to adjust this local copy of the API to suit your needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Download Link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jshelp/intro_accessapi.html"&gt;http://developers.arcgis.com/en/javascript/jshelp/intro_accessapi.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once downloaded, the install.htm file explains how to manipulate the local API.&amp;nbsp; I also have a different forum post somewhere explaining how I got it to work for local-only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 17:13:18 GMT</pubDate>
    <dc:creator>BrianRassier</dc:creator>
    <dc:date>2013-06-06T17:13:18Z</dc:date>
    <item>
      <title>HTTP-referer tokens fails with secure services when files are served from file://</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/http-referer-tokens-fails-with-secure-services/m-p/300995#M27609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are building a phonegap app that will include som mapping features using phonegap/Cordova. Cordova serves up HTML/JS files in a webview on the smartphone straight from "disk" using the file:// protocol. This seems to be confusing the JS APIs, and the referrer is not included when a request to a secure service is made, hence the token is considered invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug in the JS API, or is there a known workaround? We cannot have username/password stored on the devices, and the devices will change IPs frequently. Our current solution is to serve a token to the clients based on their IP that they can use, but this is not ideal.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 06:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/http-referer-tokens-fails-with-secure-services/m-p/300995#M27609</guid>
      <dc:creator>Ole_-_AndréJohansen</dc:creator>
      <dc:date>2013-05-29T06:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP-referer tokens fails with secure services when files are served from file://</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/http-referer-tokens-fails-with-secure-services/m-p/300996#M27610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this will help, but when downloading the JS API to use locally, it includes instructions on how to update the local JS API to map back to your particular server.&amp;nbsp; We've manipulated this portion of the API to work locally, so the JS isn't truely hosted anywhere besides the file system.&amp;nbsp; Maybe you could do something similar for your phonegap app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This updated area of the JS API also deals with the file: protocol, so you may be able to adjust this local copy of the API to suit your needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Download Link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jshelp/intro_accessapi.html"&gt;http://developers.arcgis.com/en/javascript/jshelp/intro_accessapi.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once downloaded, the install.htm file explains how to manipulate the local API.&amp;nbsp; I also have a different forum post somewhere explaining how I got it to work for local-only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 17:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/http-referer-tokens-fails-with-secure-services/m-p/300996#M27610</guid>
      <dc:creator>BrianRassier</dc:creator>
      <dc:date>2013-06-06T17:13:18Z</dc:date>
    </item>
  </channel>
</rss>

