All Versions
20
Latest Version
Avg Release Cycle
140 days
Latest Release
1034 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