I am currently making a sharepoint 2013 app on Indian railways, in this app I am accessing railways api which is on HTTP site and my code is on HTTPS site, which is office 365 online site. Since I am making an app on office 365 it is giving me an error, ' Loading mixed (insecure) active content on a secure page "http://pnrbuddy.com/api/station_by_code/code/cnb/format/json/pbapikey/539ff0f815ca697c681fe01d32ba52e3/pbapisign/906544ca31f9c0048e80bde8127556af828e313b" ' , in my browser console what would be the reason?

1 Answer 1


There are really only two ways that you can overcome this and only one of them is controllable by you.

  1. The bad answer is that each visitor can change a setting in their browser to allow mixed content. That's just not a practical solution. I'd argue it's just bad all the way around.

  2. You will need to use a proxy to get the data for you. You could use the Proxy API available in SharePoint, or you could write a custom proxy service.

  • Using the Proxy API is a cool idea. I think you must have an app context though, which I find a bit strange (since it does not have to be app-specific)
    – eirikb
    Commented Apr 14, 2014 at 16:21
  • The developer site created on office 365 is not working properly the app is taking time to install when the solution is deployed, so I am using office 365 online, and there I am writing my code in App.js. So can I access Proxy API from there? Commented Apr 15, 2014 at 4:02
  • Yes, you should be able to. Commented Apr 16, 2014 at 0:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.