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

Bad Request The CSRF session token is missing at login page when using anything else than localhost #354

Open
rv2931 opened this issue Dec 4, 2024 · 0 comments

Comments

@rv2931
Copy link

rv2931 commented Dec 4, 2024

Hello
I'm using the docker compose udata stack on my local development plateform
I've added 127.0.0.1 local.domain in my windows directory C:\Windows\System32\drivers\etc\hosts (equivalent to Linux /etc/hosts)
I've configured udata.cfg :

SERVER_NAME='local.domain:7000'
...
# adding 'domain' domain
URLS_ALLOWED_TLDS = Defaults.URLS_ALLOWED_TLDS | set(['local','domain'])

Then I rebuild my docker image
I added my user acount and set it to admin via terminal udata commands

When I go to http://local.domain:7000, the welcome is correctly displayed but when I try to login via the login page and click on "log in" I have systematically an error

Bad Request
The CSRF session token is missing

I've tried by removing the cache but nothing change

But when I try with http://localhost:7000, everything works fine and I can login correctly

I don't manage to solve the problem
Thank you for you feedback

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

1 participant