Sanic Cors Versions Save

A Sanic extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible. Based on flask-cors by Cory Dolphin.

2.2.0

1 year ago

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

2.2.0b1

1 year ago

Test fix for sanic v22.9

2.1.0

1 year ago

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

2.0.1

2 years ago

2.0.0

2 years ago

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

1.0.1

2 years ago

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

1.0.0

3 years ago
  • 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

0.10.0.post3

4 years ago

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).

0.10.0.post2

4 years ago
  • Fixes the issue where the sanic asyncio server write_error routine cannot use an async Exception handler.
  • Fixes #38 (again)

0.10.0.post1

4 years ago
  • 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