agrueneberg/Corser — pull request #7 by Nomon (2012-11-14 17:18:41+00:00)
Title: Support for passing a function(origin, callback) as origins

Hi,

We use your great CORS module in one of our upcoming new projects but we needed support to verify the origin against a large set of oauth2 redirect_uri's that are being added, changed and revoked so we added support for passing a function as options.origins. This way we can do asynchronous checking from redis. I do not know if this feature fits your plans for the module but here it is incase you want to add it to the actual module. We also unified the interface so that checking against an array uses the same path. Tests included.

Best wishes,
Matti Savolainen / Nomon
http://applifier.com