1

I had to change my HTTP website to HTTPS because of html5 Geo-location API restrictions.Now that API is working fine and the whole website works fine on local-host but when it's hosted online no API gets called and i get no data with Status: 0. I have a Node.js back-end.

Is the reason why it's not working is because i am calling an HTTP API from an HTTPS website?

If so how do i fix this the easier way and if not than what is the case. I am calling it using angular 1.

Syed Muhammad Oan
  • 687
  • 2
  • 15
  • 39

1 Answers1

3

This is about same origin policy, please check detail at: HTTP Ajax Request via HTTPS Page

mkysoft
  • 5,392
  • 1
  • 21
  • 30