mschae / cors_plug

An Elixir Plug to add CORS.
https://hex.pm/packages/cors_plug
Other
404 stars 75 forks source link

Allow origin function with arity 1 #72

Closed tomconroy closed 4 years ago

tomconroy commented 4 years ago

In my use-case I'm setting different allowed origins for different requests, so I need access to the conn in the origins function

tomconroy commented 4 years ago

Sorry, this is a dupilcate of #66

mschae commented 4 years ago

Thanks for the nudge, I finally merged #66 and released 2.0.1 with it!