All Versions
20
Latest Version
Avg Release Cycle
140 days
Latest Release
1336 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.0.3 Changes
February 06, 2021- ๐ Fixes
- Use recent versions of Elixir and Erlang for testing (thanks @anthonator)
- Fix compilation warnings (thanks @thiamsantos)
- ๐ Fixes
-
v2.0.2 Changes
February 18, 2020- ๐ Fixes
- Fixes an issue where the plug would error when no CORS header was set
(thanks @alexeyds)
- Fixes an issue where the plug would error when no CORS header was set
- ๐ Fixes
-
v2.0.1 Changes
February 18, 2020- โจ 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
- โจ Enhancements
-
v2.0.0 Changes
November 06, 2018- โจ 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
- โจ Enhancements
-
v1.5.2 Changes
March 19, 2018v.1.5.2
- ๐ Fixes
- Relax version requirements
- ๐ Fixes
-
v1.5.1 Changes
March 14, 2018- ๐ Fixes
- Send proper return value if
Access-Control-Request-Headers
is not present.
(thanks @shivamMg)
- Send proper return value if
- ๐ Fixes
-
v1.5.0 Changes
December 06, 2017- โจ Enhancements
- Allow configuration of origin via function (thanks @mauricioszabo).
- โจ Enhancements
-
v1.4.0 Changes
January 13, 2017- โจ Enhancements
- Allows both
*
as well as specific domains in theorigins
config, returns the corresponding value (thanks @mustafaturan)
- Allows both
- ๐ Fixes
- Don't overwrite
vary
header values with"Origin"
, instead append it. - Don't set
vary
header to empty string if not needed. - Use
Plug.Conn.merge_resp_headers/2
- Don't overwrite
๐ New major release because of the
vary
header changes, I don't expect this to break anything. - โจ Enhancements
-
v1.3.0 Changes
May 24, 2017 -
v1.2.1 Changes
February 07, 2017- ๐ Fixes
- Match for exact origin only (thanks @somlor and @JordanAdams).
- Add Vary to response header (thanks @linjunpop).
- ๐ Fixes