Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump django-cors-headers from 3.14.0 to 4.2.0 #10848

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 10, 2023

Bumps django-cors-headers from 3.14.0 to 4.2.0.

Changelog

Sourced from django-cors-headers's changelog.

4.2.0 (2023-07-10)

  • Drop Python 3.7 support.

4.1.0 (2023-06-14)

  • Support Python 3.12.

4.0.0 (2023-05-12)

  • Add CORS_ALLOW_PRIVATE_NETWORK setting, which enables support for the Local Network Access draft specification.

    Thanks to Issac Kelly in PR [#745](https://github.com/adamchainz/django-cors-headers/issues/745) <https://github.com/adamchainz/django-cors-headers/pull/745>__ and jjurgens0 in PR [#833](https://github.com/adamchainz/django-cors-headers/issues/833) <https://github.com/adamchainz/django-cors-headers/pull/833>__.

  • Remove three headers from the default "accept list": accept-encoding, dnt, and origin. These are Forbidden header names <https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name>__, which means requests JavaScript can never set them. Consequently, allowing them via CORS has no effect.

    Thanks to jub0bs for the report in Issue [#842](https://github.com/adamchainz/django-cors-headers/issues/842) <https://github.com/adamchainz/django-cors-headers/issues/842>__.

  • Drop the CORS_REPLACE_HTTPS_REFERER setting and CorsPostCsrfMiddleware. Since Django 1.9, the CSRF_TRUSTED_ORIGINS setting has been the preferred solution to making CSRF checks pass for CORS requests. The removed setting and middleware only existed as a workaround for Django versions before 1.9.

  • Add async support to the middleware, reducing overhead on async views.

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added backend dependencies Pull requests that update a dependency file engineering labels Jul 10, 2023
@dependabot dependabot bot force-pushed the dependabot/pip/django-cors-headers-4.2.0 branch 8 times, most recently from c9d6e69 to c75d383 Compare July 17, 2023 13:00
@dependabot dependabot bot force-pushed the dependabot/pip/django-cors-headers-4.2.0 branch 2 times, most recently from 3fcc9ab to 36ec4ae Compare July 20, 2023 19:44
@dependabot dependabot bot force-pushed the dependabot/pip/django-cors-headers-4.2.0 branch from 36ec4ae to 3c837ae Compare August 1, 2023 22:06
@jhonatan-lopes jhonatan-lopes added the pip Used for dependabot PR's having to do with pip/python label Aug 2, 2023
@dependabot dependabot bot force-pushed the dependabot/pip/django-cors-headers-4.2.0 branch 10 times, most recently from 051bb28 to 1f568e9 Compare August 4, 2023 16:17
@dependabot dependabot bot force-pushed the dependabot/pip/django-cors-headers-4.2.0 branch from 1f568e9 to a8ea100 Compare August 9, 2023 12:33
@jhonatan-lopes
Copy link
Contributor

@dependabot rebase

@jhonatan-lopes jhonatan-lopes mentioned this pull request Sep 5, 2023
Bumps [django-cors-headers](https://github.com/adamchainz/django-cors-headers) from 3.14.0 to 4.2.0.
- [Changelog](https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst)
- [Commits](adamchainz/django-cors-headers@3.14.0...4.2.0)

---
updated-dependencies:
- dependency-name: django-cors-headers
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/django-cors-headers-4.2.0 branch from a8ea100 to 2720bfb Compare September 5, 2023 14:46
@jhonatan-lopes jhonatan-lopes merged commit 5ae9165 into main Sep 5, 2023
@jhonatan-lopes jhonatan-lopes deleted the dependabot/pip/django-cors-headers-4.2.0 branch September 5, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend dependencies Pull requests that update a dependency file engineering pip Used for dependabot PR's having to do with pip/python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant