I am new to jscript. I am simply trying to connect to my api (which works on postman):
async function sendMSG() {
var username = "username";
var password = "xxx";
var url = "https://api.kumulos.com/b2.2/xxx/getAllUsers.json";
const request = new XMLHttpRequest();
request.open('GET', url, false, username,password)
await request.send()
}
but upon the line "send()", firefox gives me:
Uncaught (in promise) DOMException: A network error occurred.
Can you help me?
Thank you