0

How to avoid certificate check using jquery?

 $.getJSON("https://loopback-api:3000/api/SMS-APIs/getBalance?callback=?", function(result){
     console.log(result);
  }); 

Getting following error:

net::ERR_INSECURE_RESPONSE

Any ideas?

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Supervision
  • 1,683
  • 1
  • 18
  • 23
  • 2
    in short, you can't. longer explanation: http://stackoverflow.com/questions/25723415/bypassing-ssl-certificate-error-in-jquery-and-ajax by @Alex K. – waldek_h Jul 08 '15 at 12:35
  • 1
    possible duplicate of [Determine if ajax call failed due to insecure response or connection refused](http://stackoverflow.com/questions/31058764/determine-if-ajax-call-failed-due-to-insecure-response-or-connection-refused) – Paul Sweatte Aug 07 '15 at 10:00

0 Answers0