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

fixed csrf #1948

Merged
Merged

Conversation

iamkarlson
Copy link
Contributor

Added in Django 4.0: CsrfViewMiddleware verifies the Origin header, if provided by the browser, against the current host and the CSRF_TRUSTED_ORIGINS setting. This provides protection against cross-subdomain attacks.

It broke this mechanism for installations behind proxy when origin is forwarded.

@vabene1111
Copy link
Collaborator

awesome, thnaks. I will quickly read trough the docs and get this merged for the next release hopefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants