Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --corp cli flag similarly to --cors #817

Open
VitGottwald opened this issue Dec 9, 2024 · 0 comments
Open

Add a --corp cli flag similarly to --cors #817

VitGottwald opened this issue Dec 9, 2024 · 0 comments

Comments

@VitGottwald
Copy link

Description

Add a --corp flag that would result in the equivalent of

{
  "headers": [
    {
      "source": "**/*",
      "headers": [
        {
          "key": "Cross-Origin-Resource-Policy",
          "value": "cross-origin"
        }
      ]
    }
  ]
}

that now has to be set up in a serve.json .

Why

Browsers now require CORP and COEP and the --cors flag is not enough for quickly starting up a server and testing things.

Alternatives

Add the Cross-Origin-Resource-Policy: cross-origin header by default when --cors is specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant