Skip to content

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

Description

@VitGottwald

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions