-
-
Notifications
You must be signed in to change notification settings - Fork 850
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-Error with Docker Desktop #786
Comments
Can you check if you can access the admin panel from localhost:42110 address instead? |
Hey, |
Hey @SchinkTasia , do you mind sharing the I made a small update here to the docker compose that would be worth trying: 6d10f98 |
Hi, When i connect over 192.168.1.4 i got the following: Following my docker-compose.yml (like i said, when i can login, i will change the login data. but even when i change it, it will be no difference at the moment.)
When you need something else, just tell me. Update Console Output from khoji server:
|
Update |
I am also getting CSRF verification failures with self-hosted on Firefox on Ubuntu. It's the exact same 403, and I've checked and it seems the site doesn't ever set a cookie, even with all security turned off. Would love a fix to actually make this usable. |
There seem to be multiple different issues being discussed here.
@IMJONEZZ, are you hitting 1. or 2. (or both!)? And is this happening even after you try with localhost:42110 instead of 127.0.0.1:421100? |
I’m not sure which I’m hitting, because the error is a 403 connection, but
the stack trace says CSRF verification error. For me it happens regardless
of browser or port, I’ve confirmed it doesn’t work on chrome or port 42110
either.
Dňa št 13. 6. 2024 o 8:04 Debanjum ***@***.***> napísala(a):
… There seem to be multiple different issues being discussed here.
1. CSRF verification error: This seems to have resolved when
@SchinkTasia <https://github.com/SchinkTasia> used localhost:42110
after Saba's fix in 6d10f98
<6d10f98>
2. Django admin username, password are showing up as invalid.
@SchinkTasia <https://github.com/SchinkTasia> this is only happening
on a Windows 10 machine (and not OpenSuse) for you?
@IMJONEZZ <https://github.com/IMJONEZZ>, are you hitting 1. or 2. (or
both!)? And is this happening even after you try with localhost:42110
instead of 127.0.0.1:421100?
—
Reply to this email directly, view it on GitHub
<#786 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALEZCMGMJVCSKBH7RVQCTGDZHGRGNAVCNFSM6AAAAABISY43XWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRVG43TGNBQHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
mee to |
same csrf error |
Hi folks, I was able to verify that the latest Khoj run on Windows (11) + WSL2 + Docker (with WSL2 backend) does not hit the CSRF issue when accessing the admin panel at When trying to access Khoj admin panel over an i.p or domain you need to ensure the environment variable Let us know if you're still hitting the issue, where/how you're running Khoj and client or server console logs to help debug this! |
Describe the bug
Hi, I currently use the docker-compose.yml which is linked in the self-host documentation with the Docker Desktop Windows Software. I can´t log into the Admin panel with the http://127.0.0.1:42110 adress, because i got the "CSRF verification failed. Request aborted.". I try to add my IP to the docker-compose as environment var and disable the SSL with "KHOJ_NO_SSL="True"", and i tried "KHOJ_NO_HTTPS="True"" because in the settings.py its searching for this.
A few days ago it worked and than not anymore. i currently tried 2 different computer with the docker and non-docker installation, but each time i got the same result. When i try to connect with a custom domain from another pc i cant log in because "my credentials are wrong".
To Reproduce
I really dont know, how to reproduce this issue.
Screenshots
Platform
If self-hosted
More information
I set the environment variable KHOJ_DEBUG=True in the docker-compose.yml, but i only get one line as repsonse when i try to login which says, that someone connected. So this isn´t sadly usefully for me, currently.
The text was updated successfully, but these errors were encountered: