Releases: mschae/cors_plug
Releases · mschae/cors_plug
v3.0.3
v2.0.3
- Fixes
- Use recent versions of Elixir and Erlang for testing (thanks @anthonator)
- Fix compilation warnings (thanks @thiamsantos)
v2.0.2
v2.0.1
- Enhancements
- Passing a function with arity 2 as
origin
will pass theconn
to the
function, allowing configuration based on conn (thanks @billionlaughs). - You can now pass regexes as part of the list of origins (thanks @gabrielpra1).
- Passing a function with arity 2 as
- Fixes
v2.0.0
- Enhancements
- Instead of sending
"null"
we don't set the headers at all if the origin doesn't match, as suggested by the CORS draft 7.2. Thanks to @YuLeven for initiating the discussion and @slashmili for fixing it. Since we change the return values I consider this a breaking change and released a new major version. - You can now set the option
send_preflight_response?
tofalse
(it'strue
by default) to stopCorsPlug
sending a response to the frelight request. That way the correct headers are set but it's up to you to respond to the request downstream.
- Instead of sending
v1.5.2
1.5.1
1.5.0
- Enhancements
- Allow configuration of origin via function (thanks @mauricioszabo).