Skip to content

Configure Allowed Headers as Array of RegExp #299

@ramytamer

Description

@ramytamer

I am working on rewriting a web application written in a different language/framework in Node, and I want to replicate the same CORS behavior we had before.

The old behavior was configured via an array of regex patterns, for example:

allowedHeaders = [
  "^apollo-",
  "^x-apollo-",
  "^x-custom-app-header-",
  "Accept",
  "Content-Type",
  ...
]

Do we plan to support such a thing in this package? Or, if the maintainers are open to that, I can open a PR for this functionality.

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