Home NodeJs - Electron - jQuery ajax request to IIS
Reply: 0

NodeJs - Electron - jQuery ajax request to IIS

user580 Published in April 19, 2018, 10:03 am

I try to send an ajax request from electron, but I always get the error 401. So far I've found out it has something to do with the credentials.

Thats my basic code snippet:

    type: "GET",
    url: "http://myURL.php",
    success: function(response) { console.log(response); }

But as I said, I only get a 401 here. So i added:

xhrFields: { withCredentials: true }

But that doesn't work either.
Anybody have any idea how to do this? If there's anything else, just ask.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.551311 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO