Skip to content

Releases: ashleysommer/sanic-cors

Compat release for Sanic v22.9.0

07 Oct 02:07
Compare
Choose a tag to compare

Quick fix for new middleware-registry behaviour on Sanic v22.9.0, fixes #64
Vary 'Origin' header will be added to any existing Vary string on response, fixes #62

v2.2.0b1 - Testing fix for Sanic v22.9

06 Oct 07:03
Compare
Choose a tag to compare

Test fix for sanic v22.9

Fix support for sanic-ext v22.6.0+

09 Aug 01:21
Compare
Choose a tag to compare

Fix compatibility with sanic-ext >= 22.6.0 (fixes #63)
Replace distutils with packaging, (fixes #61)

2022-01-29 - v2.0.1 avoid sanic deprecation warning

28 Jan 23:49
Compare
Choose a tag to compare
remove fallback arg from error handler. fixes #57

2022-01-04 - v2.0.0 - Sanic v21.12 support, without SPTK

04 Jan 14:45
Compare
Choose a tag to compare

Compatibility with Sanic v21.12, remove usage of Sanic-Plugin-Toolkit
Simplified decorator code
Update examples
update readme
update changelog
bump copyright years

2021-10-03 - v1.0.1

03 Oct 01:39
Compare
Choose a tag to compare

Fix compat with Sanic v21.9.0+
Update sptk to 1.2.0

The One and Only

21 Mar 14:40
Compare
Choose a tag to compare
  • Replace Sanic-Plugins-Framework (SPF) with Sanic-Plugin-Toolkit (SPTK)
  • Remove python 3.6 compatibility
  • Remove Pre-Sanic-21.3 compatibility
  • If you need to use sanic <= 21.3, use the Sanic-CORS v0.10 branch

Incremental Update

25 Feb 07:02
Compare
Choose a tag to compare

Fixes another issue introduced with Sanic 19.12, where automatic_options cannot work when the router is run before the Sanic-CORS middleware

Changed automatic_options to default to True when used in extension mode. (It was already default True in @decorator mode).

Revoke async exception handler support

21 Feb 00:22
Compare
Choose a tag to compare
  • Fixes the issue where the sanic asyncio server write_error routine cannot use an async Exception handler.
  • Fixes #38 (again)

Sanic 19.12 CORS Error Handler fix

19 Feb 12:21
Compare
Choose a tag to compare
  • Fixed the errors seen in Sanic 19.12+ where the CORS exception handler could be triggered
    before the request context for a given request is created.
    • If on Sanic 19.9+ fallback to using the request.ctx object when request_context is not available
  • Fixes #41