Skip to content

Visit website with domain, cause Refused to set unsafe header "cookie" #2751

Description

@jeange1003

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 20 or higher

Browsers

Chromium (Chrome, Brave, etc.)

Reproduction repository

https://github.com/jeange1003/msw-test

Reproduction steps

  1. npm run dev
  2. Visit the local site via domain, like 'http://my.dev.com', which is configured in host file like '127.0.0.1 my.dev.com'

Current behavior

Error in console: Refused to set unsafe header "cookie"
Image

Expected behavior

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds:triageIssues that have not been investigated yet.scope:browserRelated to MSW running in a browser

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions