-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
This is pretty close to a feature request, but it looks like the right place for it and I'm willing to do much of the work.
Is there any interest in making this a general CORS library, i.e. not just a plug.
I think work needed would be
- make some private functions public. e.g. https://github.com/mschae/cors_plug/blob/master/lib/cors_plug.ex#L78
- Only compile the cors_plug if plug is installed, by using
Code.ensure_loaded?
- Consider renaming the project to
cors
on hex. It is still available.
Why.
a) Useful in tests of APIs to check that the headers include the expected CORS headers
b) I, and quite a few others, use Raxx/Ace
Metadata
Metadata
Assignees
Labels
No labels