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

[Django 4.2] Django>=4.0 must include both scheme and host in CSRF_TRUSTED_ORIGINS #33228

Open
UsamaSadiq opened this issue Sep 12, 2023 · 1 comment

Comments

@UsamaSadiq
Copy link
Member

UsamaSadiq commented Sep 12, 2023

Django 4.0 and above

  • For Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme and host, e.g.:
https://dummy.example.com

Django 3.2 and lower

  • For Django 3.2 and lower, CSRF_TRUSTED_ORIGINS must contain only the hostname, without a scheme:
.example.com

Reference release notes documentation

@awais786
Copy link
Contributor

Facing this issue on sandboxes with django42.

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

No branches or pull requests

2 participants