Skip to content

CORS error in dev server(only firefox) #1606

@SimYunSup

Description

@SimYunSup

Describe the bug

Cause of https://github.com/wxt-dev/wxt/pull/1406/files#diff-50df625c6f95cac7dcf47882681f0bc55fb27a66858fc50256f26fb541b25c43 changes, Firefox(not in Chrome) throw CORS error(default was http:///*/, changed to http://localhost:3000/*).

Related in #1578 (comment)

Reproduction

Image

Steps to reproduce

Run pnpm dev:firefox in default template(with [email protected])

System Info

System:
    OS: macOS 15.3.2
    CPU: (10) arm64 Apple M4
    Memory: 77.72 MB / 16.00 GB
    Shell: 7.5.0 - /usr/local/bin/pwsh
  Binaries:
    Node: 20.14.0 - ~/.local/state/fnm_multishells/713_1745355635500/bin/node
    npm: 10.7.0 - ~/.local/state/fnm_multishells/713_1745355635500/bin/npm
    pnpm: 10.8.0 - ~/.local/state/fnm_multishells/713_1745355635500/bin/pnpm
    bun: 1.2.9 - ~/.bun/bin/bun
  Browsers:
    Chrome: 135.0.7049.114
    Safari: 18.3.1
  npmPackages:
    wxt: ^0.20.3 => 0.20.3

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions