Accessing http URL from the application

2232
16
02-21-2018 10:31 AM
VenkataSrikanth_Dasari
Regular Contributor

Hi

I am accessing the REST service using esriRequest which is http URL from the portal linked web application.

however the application is accessing using https and response giving unable to load the url status 0.

Please give me solution for this.

Cheers,

Srikanth Dasari

0 Kudos
16 Replies
RobertScheitlin__GISP
MVP Emeritus

So when manually add the url to your web browsers address bar does your url work?

0 Kudos
VenkataSrikanth_Dasari
Regular Contributor

Yes

On Wed, 21 Feb 2018 at 2:32 pm, Robert Scheitlin, GISP <geonet@esri.com>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Can you show me the exact url that works and what the return looks like?

0 Kudos
VenkataSrikanth_Dasari
Regular Contributor

Hi,

Issue got resolved. Actually, I am using esriRequest for a non-esri "SharePoint" service and I have used dojo/request/xhr to resolve issue. Now, I am facing issue with the mixed content "Mixed Content: The page at 'https://localhost:44397/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'URL'. This request has been blocked; the content must be served over HTTPS"

Please give me some resolution.

Cheers,

Srikanth Dasari

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Your only solution is to not mix content. Either use http or https.

0 Kudos
VenkataSrikanth_Dasari
Regular Contributor

SharePoint is only for internal purpose so they are using with http..

On Thu, 22 Feb 2018 at 5:17 pm, Robert Scheitlin, GISP <geonet@esri.com>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

But that does not help your mixed content issue.

0 Kudos