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

Add CSRF_TRUSTED_ORIGINS to settings.py #51

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

laurigates
Copy link
Collaborator

This will probably fix the CSRF issue when running on Platta after setting the origin using the environment variable.

@laurigates laurigates added the bug Something isn't working label Oct 23, 2023
Copy link
Collaborator

@aapris aapris left a comment

Choose a reason for hiding this comment

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

I don't know will this work, perhaps the values are overridden in Platta configuration?
I guess when accessing outside this value must match header
Origin: https://mittaridatapumppu-deviceregistry.dev.hel.ninja
But worth of trying anyway. :)

@laurigates laurigates merged commit 1eac03f into main Oct 23, 2023
2 checks passed
@laurigates laurigates deleted the fix/csrf_verification branch October 23, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants