<?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: Tiles on SSL website loading over http in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiles-on-ssl-website-loading-over-http/m-p/122184#M11375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had the same issue on my project. In the end, I did the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Setup a proxy page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Set the proxy page in the esriconfig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Waited for the tile layer to load, once it did, there was a list of tileServers as a property on the layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Set each one of the tile servers as a proxy rule if they begin with http&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sent all those http requests through my server and resolved the issues with mixed content. Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 20:57:22 GMT</pubDate>
    <dc:creator>JamesVillanueva</dc:creator>
    <dc:date>2013-12-30T20:57:22Z</dc:date>
    <item>
      <title>Tiles on SSL website loading over http</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiles-on-ssl-website-loading-over-http/m-p/122183#M11374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi There,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an application on a SLL domain. Loading all the ArcGIS Javascript files is correctly done over https. But when actually using the application, the tiles of the basemap are loaded over http, resulting in security warnings in firefox en chrome. You can see it working at &lt;/SPAN&gt;&lt;A href="https://topografieindeklas.nl/topotrainer/nederland/"&gt;https://topografieindeklas.nl/topotrainer/nederland/&lt;/A&gt;&lt;SPAN&gt;. See the screenshot in the attachment for the errors displayed in firefox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT: &lt;/STRONG&gt;&lt;SPAN&gt;When reproducing the error it's possibly easier to force this page over https: &lt;/SPAN&gt;&lt;A href="https://topografieindeklas.nl/SSLtest.php"&gt;https://topografieindeklas.nl/SSLtest.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Edit2:&lt;/STRONG&gt;&lt;SPAN&gt; from there, it becomes more clear where things go wrong. &lt;/SPAN&gt;&lt;A href="https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Topografie_in_de_klas_nederland_ondergrond/MapServer?f=json"&gt;Looking at the JSON url&lt;/A&gt;&lt;SPAN&gt;, the tile sub-servers are having http instead of https!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code would be as basic as this (note this is Legacy; AMD style makes no difference):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.7/js/dojo/dijit/themes/claro/claro.css"&amp;gt;&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.7/js/esri/css/esri.css"&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript" src="https://js.arcgis.com/3.7/"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;BR /&gt;#map{&lt;BR /&gt;&amp;nbsp; box-shadow:0 1px 3px rgba(0,0,0,0.5);&lt;BR /&gt;&amp;nbsp; -moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);&lt;BR /&gt;&amp;nbsp; -webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);&lt;BR /&gt;&amp;nbsp; border:1px solid #CDCDCD;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;}&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;dojo.require("esri.map");&lt;BR /&gt;dojo.require("esri.layers.FeatureLayer");&lt;BR /&gt;dojo.require("esri.tasks.query");&lt;BR /&gt;dojo.require("dijit.layout.BorderContainer");&lt;BR /&gt;dojo.require("dijit.layout.ContentPane");&lt;BR /&gt;function createMap(){&lt;BR /&gt;&amp;nbsp; var basemapURL="https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Topografie_in_de_klas_nederland_ondergrond/MapServer";&lt;BR /&gt;&amp;nbsp; var map=new esri.Map("map",{zoom:7,center:[5.12,52.30]});&lt;BR /&gt;&amp;nbsp; map.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(basemapURL));&lt;BR /&gt;&amp;nbsp; var infoTemplate=new esri.InfoTemplate("${NAME}",'Provincie &amp;lt;a href="https://topografieindeklas.nl/wp-content/themes/topografieindeklas/topotrainer/nederland/${Provincie}"&amp;gt;${Provincie} oefenen&amp;lt;/a&amp;gt;');&lt;BR /&gt;&amp;nbsp; contentFeatureLayer=new esri.layers.FeatureLayer('https://services.arcgis.com/nSZVuSZjHpEZZbRo/ArcGIS/rest/services/Topografie_in_de_klas_nederland/FeatureServer/0',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {mode:esri.layers.FeatureLayer.ON_DEMAND,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; outFields:["*"],infoTemplate:infoTemplate});&lt;BR /&gt;&amp;nbsp;&amp;nbsp; contentFeatureLayer.setDefinitionExpression("Type='Provincie'");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; map.addLayer(contentFeatureLayer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onLoad",function(){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map,"onMouseOver",map,"reposition");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(200,100);});&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dojo.connect(contentFeatureLayer,"onMouseOver",function(evt){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setMapCursor("pointer");});&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dojo.connect(contentFeatureLayer,"onMouseOut",function(evt){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setMapCursor("default")});&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return map;&lt;BR /&gt;}&lt;BR /&gt;dojo.ready(createMap);&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;div id="mainMapWindow" dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" &amp;gt;&lt;BR /&gt;&amp;lt;div id="map" dojotype="dijit.layout.ContentPane" region="center" &amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be causing the tiles being loaded over http, while the rest of the page is loaded over https?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 08:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiles-on-ssl-website-loading-over-http/m-p/122183#M11374</guid>
      <dc:creator>DennisHunink</dc:creator>
      <dc:date>2013-12-30T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tiles on SSL website loading over http</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiles-on-ssl-website-loading-over-http/m-p/122184#M11375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had the same issue on my project. In the end, I did the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Setup a proxy page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Set the proxy page in the esriconfig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Waited for the tile layer to load, once it did, there was a list of tileServers as a property on the layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Set each one of the tile servers as a proxy rule if they begin with http&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sent all those http requests through my server and resolved the issues with mixed content. Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 20:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiles-on-ssl-website-loading-over-http/m-p/122184#M11375</guid>
      <dc:creator>JamesVillanueva</dc:creator>
      <dc:date>2013-12-30T20:57:22Z</dc:date>
    </item>
  </channel>
</rss>

