Before I posted the thread I had tried HTTP basic but it did not work.
const base64Credentials = btoa(username + ':' + password);
fetch(fetch_link, {
method: 'GET',
headers: {
'Authorization': 'Basic ' + base64Credentials,
'Content-Type': 'application/json',
},
})
.then(response =>
I will test it again then.
Thank you for the reply.
|