agrueneberg / Corser

CORS middleware for Node.js
MIT License
91 stars 11 forks source link

Should allow regex's for permissible request and response headers. #2

Open drobbins opened 12 years ago

drobbins commented 12 years ago

e.g. in Riak, meta-data can take the form of an http header: X-Riak-Meta-*. Corser cannot proxy Riak effectively w/o this feature.

agrueneberg commented 12 years ago

Unfortunately, neither Access-Control-Allow-Headers (for request headers) nor Access-Control-Expose-Headers (for response headers) allow wildcards, let alone regular expressions. I'll look into it, maybe there is another way.