http vs https

862
4
Jump to solution
11-09-2017 03:16 AM
cadgism
Occasional Contributor

Hi..

I have a .net web application (main) calling another arcgis java script web application (map_app) and embed it inside the main application.

Everything was working fine until we made little  change  as follows :-

The main application is changed to  - https - from http. The map_app & the map services are  still  in http. After these changes map_app is not working at all. 

Any help would be gratefully appreciated .

Thank you

0 Kudos
1 Solution

Accepted Solutions
rgomes
by
New Contributor III

I think you do not need to republish. But you can enabled binding HTTP and HTTPS to the services. 
If you permit any procotol (HTTP and HTTPS) just need to configure all the references inside your main application to use just HTTPS requests. 
With this any other application or arcgis server continue to permit the use of HTTP.

The mixed content is prohibited just for each independent application. In other words you can provide one or more HTTP application and one or more independent HTTPS application, using the same services if the protocol are enable. You just can't do the access inside the same main application using diferent protocols.


View solution in original post

4 Replies
RobertScheitlin__GISP
MVP Emeritus

CADGIS,

   The proper way to fix this is to update your JS API code to use https urls. Using mixed content is always going to be an issue.

You may running into the issue addressed here:

Supporting Multiple IIS Site Bindings | Microsoft Docs 

rgomes
by
New Contributor III

Mixed contents inside the same application are not supported. Just change all of the contents for the application to work using HTTPS, including the API references. If you don't know all the places where to change make a Find/Replace in your projects or try to use a kind of URL Rewriter.

cadgism
Occasional Contributor

Thank You Rafael Gomes..

Can you explain little more please..

The main application is https. The map_app is embedded inside the main application as iframe. The map_app  application access many services from more than one arcgis server. All these services are published as http services.

if i understand you right, you are suggesting to  re-publish all the services in https ?. 

0 Kudos
rgomes
by
New Contributor III

I think you do not need to republish. But you can enabled binding HTTP and HTTPS to the services. 
If you permit any procotol (HTTP and HTTPS) just need to configure all the references inside your main application to use just HTTPS requests. 
With this any other application or arcgis server continue to permit the use of HTTP.

The mixed content is prohibited just for each independent application. In other words you can provide one or more HTTP application and one or more independent HTTPS application, using the same services if the protocol are enable. You just can't do the access inside the same main application using diferent protocols.