langdonx

Properly consuming the API over SSL

Discussion created by langdonx on Nov 16, 2012
Latest reply on Nov 16, 2012 by langdonx
All the samples are using standard HTTP, but I figured using SSL would be as simple as adding an "s" to:

<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6"></script>


And while it more or less was, I did have to apply the hack below:

  esri.setRequestPreCallback(function (ioArgs) {
   alert(ioArgs.url);
   ioArgs.url = ioArgs.url.replace('http:', 'https:');
   return ioArgs;
  });


Unfortunately even with that, all of the map images are being loaded over non-SSL.  Is there a proper way to using ArcGIS over SSL?  Some property I need to set somewhere?

TIA!

Outcomes