You should be able to pass in the headers to fetch:
const response = await fetch("https://example.org/post", {
headers: {
"Authorization": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==",
},
// ...
});
You should be able to pass in the headers to fetch:
const response = await fetch("https://example.org/post", {
headers: {
"Authorization": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==",
},
// ...
});