Sanic-cors

Latest version: v2.2.0

Safety actively analyzes 629639 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

1.10.3

* Adds logging to Sanic-Cors so it is easy to see what is going on and why
* Adds support for compiled regexes as origins

Big thanks to michalbachowski and digitizdat!

1.10.2

This release fixes the behavior of Access-Control-Allow-Headers and Access-Control-Expose-Headers, which was previously swapped since 1.9.0.

To further fix the confusion, the `headers` parameter was renamed to more explicitly be `allow_headers`.

Thanks maximium for the bug report and implementation!

1.10.1

This is a bug fix release, fixing:
Incorrect handling of resources and intercept_exceptions App Config options https://github.com/wcdolphin/sanic-cors/issues/84
Issue with functools.partial in 1.10.0 using Python 2.7.9 https://github.com/wcdolphin/sanic-cors/issues/83

Shoutout to diiq and joonathan for reporting these issues!

1.10.0

* Adds support for returning CORS headers with uncaught exceptions in production so 500s will have expected CORS headers set. This will allow clients to better surface the errors, rather than failing due to security. Reported and tested by robertfw -- thanks!
* Improved conformance of preflight request handling to W3C spec.
* Code simplification and 100% test coverage :sunglasses:

1.9.0

* Improves API consistency, allowing a CORS resource of '*'
* Improves documentation of the CORS app extension
* Fixes test import errors on Python 3.4.1 (Thanks wking )

1.8.1

Thanks to wking's work in PR https://github.com/wcdolphin/sanic-cors/pull/71 `python setup.py test` will now work.

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.