<?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: Accessing the esri js api over https in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28983#M2471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's info we got from ESRI when we asked about this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A potential workaround is to update the tile urls after the layer is loaded and replace http with https, here's a code snippet that shows this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function init() { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = new esri.Map("map"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Creates the Virtual Earth layer to add to the map &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; veTileLayer = new esri.virtualearth.VETiledLayer({ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bingMapsKey: '', //set to your key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_AERIAL &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(veTileLayer, "onLoad", function(){ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; veTileLayer.tileServers = dojo.map(veTileLayer.tileServers, function(tileServer) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tileServer.replace("http:","https:"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(veTileLayer); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 17:28:47 GMT</pubDate>
    <dc:creator>RebeccaMaaser</dc:creator>
    <dc:date>2011-01-26T17:28:47Z</dc:date>
    <item>
      <title>Accessing the esri js api over https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28980#M2468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am building a website that will be SSL-secured as https.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to pull in the esri js api as https.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can change the link to get the api by adding the s to http and it works fine - the initial call for the api comes over the wire as https.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the api itself makes subsequent calls for content that are not https. How can I get around this issue without having to host the entire api myself?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 13:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28980#M2468</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2010-08-02T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the esri js api over https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28981#M2469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey i am also the same setup as yours? anyone who can bring light to this question?????&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 07:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28981#M2469</guid>
      <dc:creator>timothysimons</dc:creator>
      <dc:date>2011-01-26T07:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the esri js api over https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28982#M2470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi KG22,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you found anything realted to this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am building a website that will be SSL-secured as https.&lt;BR /&gt;I want to be able to pull in the esri js api as https.&lt;BR /&gt;I can change the link to get the api by adding the s to http and it works fine - the initial call for the api comes over the wire as https.&lt;BR /&gt;However, the api itself makes subsequent calls for content that are not https. How can I get around this issue without having to host the entire api myself?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 07:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28982#M2470</guid>
      <dc:creator>timothysimons</dc:creator>
      <dc:date>2011-01-26T07:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the esri js api over https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28983#M2471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's info we got from ESRI when we asked about this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A potential workaround is to update the tile urls after the layer is loaded and replace http with https, here's a code snippet that shows this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function init() { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = new esri.Map("map"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Creates the Virtual Earth layer to add to the map &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; veTileLayer = new esri.virtualearth.VETiledLayer({ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bingMapsKey: '', //set to your key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_AERIAL &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(veTileLayer, "onLoad", function(){ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; veTileLayer.tileServers = dojo.map(veTileLayer.tileServers, function(tileServer) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tileServer.replace("http:","https:"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(veTileLayer); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 17:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-the-esri-js-api-over-https/m-p/28983#M2471</guid>
      <dc:creator>RebeccaMaaser</dc:creator>
      <dc:date>2011-01-26T17:28:47Z</dc:date>
    </item>
  </channel>
</rss>

