Skip to content

Unable to access headers from the result of a fetch #97

@digipigeon

Description

@digipigeon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions