Bypassing SSL certificate error in jQuery and AJAX Bypassing SSL certificate error in jQuery and AJAX jquery jquery

Bypassing SSL certificate error in jQuery and AJAX


You cannot programmatically bypass the SSL error/warning behaviour implemented by the browser, if you could it would invalidate that security layer entirely.

If you are doing this locally/in a Windows domain environment simply add the self signed cert to the trusted store.

Additionally a certificate is (typically) issued to a domain name not an IP address so you will need to do the same in your Ajax call.


I could solve this problem adding this to my ajax call:

beforeSend: function (request) {    request.withCredentials = false;}

Isn't a recommended practice...