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

Configure Allowed Headers as Array of RegExp #299

Open
ramytamer opened this issue Mar 31, 2023 · 0 comments
Open

Configure Allowed Headers as Array of RegExp #299

ramytamer opened this issue Mar 31, 2023 · 0 comments

Comments

@ramytamer
Copy link

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.

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