Switch from urlparse() to urlsplit() for URL parsing, reducing the middleware runtime up to 5%.
This changes the type passed to origin_found_in_white_lists(), so if you have subclassed the middleware to override this method, you should check it is compatible (it most likely is).
Thanks to Thibaut Decombe in PR [#793](https://github.com/adamchainz/django-cors-headers/issues/793) <https://github.com/adamchainz/django-cors-headers/pull/793>__.
3.13.0 (2022-06-05)
Support Python 3.11.
Support Django 4.1.
3.12.0 (2022-05-10)
Drop support for Django 2.2, 3.0, and 3.1.
3.11.0 (2022-01-10)
Drop Python 3.6 support.
3.10.1 (2021-12-05)
Prevent a crash when an invalid Origin header is sent.
Thanks to minusf for the report in Issue [#701](https://github.com/adamchainz/django-cors-headers/issues/701) <https://github.com/adamchainz/django-cors-headers/issues/701>__.
3.10.0 (2021-10-05)
Support Python 3.10.
3.9.0 (2021-09-28)
Support Django 4.0.
3.8.0 (2021-08-15)
Add type hints.
Stop distributing tests to reduce package size. Tests are not intended to be
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on django-cors-headers to permit the latest version.
Changelog
Sourced from django-cors-headers's changelog.
... (truncated)
Commits
ec4a86b
Version 3.14.07834271
[pre-commit.ci] pre-commit autoupdate (#835)24e51ef
Upgrade requirements (#834)fcd7ca5
Add pyproject-fmt pre-commit hookbe3c303
[pre-commit.ci] pre-commit autoupdate (#832)67f1f92
Upgrade requirements (#831)e0ee063
Upgrade Black for blacken-docsadb63cb
[pre-commit.ci] pre-commit autoupdate (#829)77f2170
Upgrade django-stubs (#828)ffb8072
Upgrade requirements (#827)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)