Bhumi Singhal
Bhumi Singhal

Reputation: 8297

ajax call to server with self signed certificates.

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.

Upvotes: 4

Views: 7739

Answers (1)

Alexander Ventura
Alexander Ventura

Reputation: 1160

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.

Upvotes: 1

Related Questions