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

CSRF - CSRF_TRUSTED_ORIGINS #245

Open
hansesm opened this issue Aug 25, 2023 · 1 comment
Open

CSRF - CSRF_TRUSTED_ORIGINS #245

hansesm opened this issue Aug 25, 2023 · 1 comment

Comments

@hansesm
Copy link

hansesm commented Aug 25, 2023

Dear OnTask-Team,
we've just updated to version 10.4 and had the following problem.

After logging in, django threw an security error:
"CSRF verification failed. Request aborted."

We resolved the problem by adding the following to base.py

CSRF_TRUSTED_ORIGINS = ["http://your.ulr/", "http://.your.url"]

We think that this parameter might be missing.

Best regards

@hansesm hansesm changed the title CSRF - CORS_ALLOWED_ORIGINS = ["http://localhost:8080", "http://127.0.0.1:8080"] CSRF - CSRF_TRUSTED_ORIGINS Aug 25, 2023
@abelardopardo
Copy link
Owner

Thanks hansesm.

We're currently looking into it.

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

No branches or pull requests

2 participants