Mixed Content error when loading documentation

mrios
Participant IV

Hi there!

I'm importing the documentation with SmartDocs for a resource that we have on the Edge, is the basic example from Yahoo Weather. The import is working fine, I used the WADL file to import it. The problem that I have is that when the documentations is loaded in the browser the following error appears:

Mixed Content: The page at 'https://internalportal/wather_yahoo_api/apis/get/forecastrss' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://internalinformation.com:59002/smartdocs/v1/sendrequest/v1/o/internalinformation/apimodels/proxyUrl?_=1434501804941'. This request has been blocked; the content must be served over HTTPS.

After that error when I tried to make a request the following error shows up:

Uncaught SyntaxError: Unexpected token <

I followed the instructions that are here (https://community.apigee.com/questions/2413/facing-no-access-control-allow-origin-problem-whil.html) because previously I had that error and with that setup the error gone. However, the new one appears. The only thing that I couldn't do it was install SmartDocs on the Edge, because the admin has to do it and he didn't do it yet. Anyways, Is it possible that as we don't have SmartDocs installed on the Edge the error is popping up? if that's the case, can somebody please explain me how that works? Is it making a call that a service from SmartDocs should answer or something like that? I'm just guessing

Something I almost forgot. I had a policy to add CORS. Basically I'm modifying the headers to allow the Cross-origin resource Sharing.

Thanks, Matias

0 2 943
2 REPLIES 2

Hi Matias,

This is a browser restriction, either you need to enable https for internalinformation.com or use http for your portal

Mixed Content: The page at 'https://internalportal/wather_yahoo_api/apis/get/forecastrss' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://internalinformation.com:59002/smartdocs/v1/sendrequest/v1/o/internalinformation/apimodels/proxyUrl?_=1434501804941'. This request has been blocked; the content must be served over HTTPS

Thanks,

@Mukundha Madhavan, Could you please elaborate what you mean by "you need to enable https ...". ?

I have the same issue where my proxy endpoint is https://xxxxx.com which is Reverse Proxy which internally referring to http.