Describe the bug
Unable to access headers from the result of a fetch
To Reproduce
Steps to reproduce the behavior (Run in sandbox):
async function fn () {
const res = await fetch('https://example.com')
return res.headers
}
export default await fn()
Expected behavior
We expect to receieve an object (or more specifically a enumerable Headers type) which contains response headers
Desktop (please complete the following information):
- OS: Ubuntu
- Browser N/A
- Version 22.04