Basemap does not load in IE when application is https and service is http

3122
3
Jump to solution
08-07-2015 03:18 AM
RahulMetangale2
New Contributor II

Hello Everyone,

I observed that basemap does not load when application is hosted on https and base map service is http.This only happens in IE. Has anyone seen this issue before. I know if i convert all urls to https everything will work fine but there will be some scenarios where not all services will be served over https.

Any help is greatly appreciated.

-Rahul

0 Kudos
1 Solution

Accepted Solutions
ChenLi2
New Contributor III

Hi Rahul,

this is a known browser restriction, when you attempt to open an HTTP-based layer in the map viewer that's on HTTPS, the layer may not load correctly or may behave differently across browsers and browser versions. This applies to layers you add to your map and layers in existing maps. Some browsers may successfully load these layers.For security reason it is suggested to keep it consistent.

However there is a workaround if you have to use it that way, you could use proxy and tell the browser to go through the http service is safe.

You could achieve that by setting up the proxy, and add the services urls start with http in the proxy.config file.

Please find more information on how to set up proxy:

Using the proxy | Guide | ArcGIS API for JavaScript

View solution in original post

3 Replies
ChrisSmith7
Frequent Contributor

If you are in a walled garden-like scenario, you could have your IT department push out a policy to the client machines adding the site as a trusted site, then, allowing the display of mixed content (Custom level >> Misc >> Display mixed content >> Enable). This should fix the issue. Otherwise, you should make sure that all services are piped-in over SSL if the parent site is using https.

0 Kudos
RahulMetangale2
New Contributor II

I have tried that option but strange part it event with that basemap does not load.

Sent from my Windows Phone

0 Kudos
ChenLi2
New Contributor III

Hi Rahul,

this is a known browser restriction, when you attempt to open an HTTP-based layer in the map viewer that's on HTTPS, the layer may not load correctly or may behave differently across browsers and browser versions. This applies to layers you add to your map and layers in existing maps. Some browsers may successfully load these layers.For security reason it is suggested to keep it consistent.

However there is a workaround if you have to use it that way, you could use proxy and tell the browser to go through the http service is safe.

You could achieve that by setting up the proxy, and add the services urls start with http in the proxy.config file.

Please find more information on how to set up proxy:

Using the proxy | Guide | ArcGIS API for JavaScript