Electron how to access a HTTPS url by jQuery Ajax


I want to do an jQuery AJAX request to a HTTPS site in my Electron window,
But the ajax request now works.

It seems I have encountered the problem below:

Can anyone knows how to resolve this problem? Thanks.


If the server site is HTTP, not HTTPS, then the jQuery AJAX request in Electron js will works OK.


I resolved the problem by using npm request module instead of jQuery.