-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Verification Failed #2751
Comments
Hello, same problem here. |
+1 |
https://develop.sentry.dev/self-hosted/
|
Thank you for the insight, but i receive the same error even without having reverse proxy in front of Sentry (Nginx or AWS ALB). Should I try directly configuring the subdomain, certificates and reverse proxy and changing accordingly the configuration? I was excepting it to work without it for testing. |
hi @francesco-larghi-duferco |
Hello again! Yes, you are right. |
Thank you.You were right. |
Is everyone here using the nightly image of self-hosted Sentry? Meaning 24.2.0.dev? |
Ah perhaps I need to make the docs more clearer. Thanks for finding this out! |
Yes I am specifically using it 👍 |
Okay so.. it turns out this also happens on 24.1.1, where I'm running my sentry instance behind a reverse proxy. The system.url-prefix is set to the IP of the server (in this case it's 10.100.31.77). On my reverse proxy configuration, I have a few settings that enables me to access my Sentry via these addresses:
I can access Sentry via https://10.100.31.77, but not via every other domain. This didn't happen with previous releases. |
We've recently upgraded to Django 4 in the main sentry repo, and we've observed that there are more strict CSRF rules there. So, I put up this PR to try to fix that for the majority of folks: If you're on a more complex setup, it might help to set the CSRF_TRUSTED_ORIGINS yourself in the sentry.conf.py file |
same to me |
Hey @kid-of-moon, try to modify your |
The fix is to open sentry/config.yml file and set |
You're right, too. |
|
@kid-of-moon Have you configure your |
Are we calling this good with #2762? Do we want to do more here? |
I think we can close as this should be mostly resolved with getsentry/sentry#63908 and getsentry/sentry#64473. For nonstandard setups, people can specify the |
I tried all of the above methods and updated the code, but in the end it was resolved by falling back to 23.12.1 |
yes, it's the only correct way for me either. |
Self-Hosted Version
24.2.0
CPU Architecture
x86_64
Docker Version
25.0.1
Docker Compose Version
2.24.2
Steps to Reproduce
Expected Result
Logging in the Web interface.
Actual Result
I'm probably missing some key step, not clear which one.
Event ID
No response
The text was updated successfully, but these errors were encountered: