Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Suggestion: support advanced mode without RegEx conversion #2

Open
abbr opened this issue Dec 17, 2014 · 0 comments
Open

Suggestion: support advanced mode without RegEx conversion #2

abbr opened this issue Dec 17, 2014 · 0 comments

Comments

@abbr
Copy link

abbr commented Dec 17, 2014

Hi, I found it hard to test express-cors using a file based client because the origin is set to literal null (at least by Chrome), which is not a valid URL. Also, the pattern conversion you enforced make it hard to allow Any that includes above case. To kill two birds with one stone, I suggest providing an advancedMode option. When set, the input is assumed to be valid RegEx so no conversion is performed.

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

No branches or pull requests

1 participant