Skip to content

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

@VitGottwald

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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