Hi I’m truing to do this but keep getting 401 although same credentials work in postman… anyone have an idea?? This is the backend call:
fetch(URL, {
method: ‘POST’ ,
headers: 'Authorization: Basic ’ + base64( ‘User:ApiKey’ ),
body: JSON.stringify(myBody)
}).then(httpResponse => {
console.log( "httpResponse: " + httpResponse.status)});