Closed nichoth closed 4 months ago
This library does not see 'Authorization' as a valid header.
const authRes = await ky.get({ url: `https://my-api/${apiMethodName}`, headers: { Authorization: ('Basic ' + btoa(kyId + ':' + password)) }, })
@nichoth try this:
const authRes = await ky.get(`https://my-api/${apiMethodName}`, { headers: { Authorization: 'Basic ' + btoa(kyId + ':' + password) } })
It works!
This library does not see 'Authorization' as a valid header.