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

feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include schemes. #4127

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

@awais786 awais786 marked this pull request as ready for review September 26, 2023 11:36
@DawoudSheraz DawoudSheraz merged commit 9e4665a into openedx:master Sep 27, 2023
25 checks passed
Comment on lines +96 to +97
if django.VERSION[0] >= 4: # for greater than django 3.2 use schemes.
CSRF_TRUSTED_ORIGINS = CSRF_TRUSTED_ORIGINS_WITH_SCHEME
Copy link
Contributor

@timmc-edx timmc-edx Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is breaking devstack provisioning -- see #4133 for a possible fix.

EDIT: This seems to have fixed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @timmc-edx . Apologies that the base settings were missed out/ignored in this.

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.

4 participants