4

I need to make an ajax call to a server which uses a self-signed certificate. Using the --insecure option does in curl helps in doing so.

But i need to make ajax calls, much like the $http requests in angular js. Are there any headers that can be set so that the error of the certificate does not arise.

Bhumi Singhal
  • 7,459
  • 9
  • 43
  • 69
  • see http://stackoverflow.com/questions/4565772/ajax-calls-to-untrusted-https-fail-silently – Nikos Dec 17 '13 at 12:02
  • or http://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate – pherris Feb 10 '14 at 19:33

1 Answers1

1

There is a very hackish way in which you can point your browser in the direction of the server resource. This will prompt you to proceed with caution and upon proceeding anyway (try it with Chrome), your queries to the server should now work since the browser will now remember that that particular certificate is okay. I had this issue in the last project I worked on with self signed certs.

Alexander Ventura
  • 1,110
  • 1
  • 9
  • 29