Add fixed proposition for NodeJS

This commit is contained in:
Adrien Pessu
2023-06-20 17:22:56 +00:00
parent eb28266bcb
commit 36cb60c746
3 changed files with 24 additions and 2 deletions

View File

@@ -11,8 +11,8 @@ headers.append('Authorization', 'Basic' + base64.encode(username + ":" + passwor
fetch(url, {method:'GET',
headers: headers,
//credentials: 'user:passwd'
credentials: `${user}:${passwd}`
})
.then(response => response.json())
.then(json => console.log(json));
//.done();
.done();