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 verification failed. Request aborted. #1103

Open
devilman85 opened this issue Sep 30, 2024 · 5 comments
Open

CSRF verification failed. Request aborted. #1103

devilman85 opened this issue Sep 30, 2024 · 5 comments

Comments

@devilman85
Copy link

I have a problem with logging in via admin/admin. CSRF verification failed. Request aborted.

@garanews
Copy link
Member

Did you set the variable here?
https://github.com/LDO-CERT/orochi/blob/master/.envs/.local/.django#L73
You can set it with the URL that then you will use to access. Also the IP address is ok in case.

@devilman85
Copy link
Author

always gives me error even with ip

@garanews
Copy link
Member

probably wrong syntax, try in this way (the ip is an example):

CSRF_TRUSTED_ORIGINS=['https://orochi.dev','https://localhost','https://192.168.11.134']

image

@devilman85
Copy link
Author

csrf

I followed your advice but I always have the error you see

@garanews
Copy link
Member

Hello,
as I suggested is not correct 100%, in fact when try to upload I got CSRF error again!
This one instead it works 100% ,tested login and upload of dump:
CSRF_TRUSTED_ORIGINS=https://orochi.dev,https://localhost,https://192.168.11.134

PS: when apply changes on .envs/.local/.django ensure to stop and start again the container, the restart doesn't work!

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