All Versions
20
Latest Version
Avg Release Cycle
140 days
Latest Release
1168 days ago

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)
  • v2.0.2 Changes

    February 18, 2020
    • ๐Ÿ›  Fixes
      • Fixes an issue where the plug would error when no CORS header was set
        (thanks @alexeyds)
  • v2.0.1 Changes

    February 18, 2020
    • โœจ Enhancements
      • Passing a function with arity 2 as origin will pass the conn to the
        ๐Ÿ”ง function, allowing configuration based on conn (thanks @billionlaughs).
      • You can now pass regexes as part of the list of origins (thanks @gabrielpra1).
    • ๐Ÿ›  Fixes
      • Fixes an issue where the request was missing the
        access-control-request-headers (thanks @zhhz for the initial report and
        @mfeckie for the fix).
  • 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? to false (it's true by default) to stop CorsPlug 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.
  • v1.5.2 Changes

    March 19, 2018

    v.1.5.2

    • ๐Ÿ›  Fixes
      • Relax version requirements
  • v1.5.1 Changes

    March 14, 2018
    • ๐Ÿ›  Fixes
      • Send proper return value if Access-Control-Request-Headers is not present.
        (thanks @shivamMg)
  • v1.5.0 Changes

    December 06, 2017
    • โœจ Enhancements
  • v1.4.0 Changes

    January 13, 2017
    • โœจ Enhancements
      • Allows both * as well as specific domains in the origins config, returns the corresponding value (thanks @mustafaturan)
    • ๐Ÿ›  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

    ๐Ÿ†• New major release because of the vary header changes, I don't expect this to break anything.

  • v1.3.0 Changes

    May 24, 2017
    • โœจ Enhancements
  • v1.2.1 Changes

    February 07, 2017
    • ๐Ÿ›  Fixes
      • Match for exact origin only (thanks @somlor and @JordanAdams).
      • Add Vary to response header (thanks @linjunpop).