CSRF Failed when creating projects through ngrok on Windows + WSL 2 (Django not reading DJANGO_CSRF_TRUSTED_ORIGINS) #9964
Unanswered
roundspecs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I’m trying to self‑host CVAT locally and make it accessible via ngrok, but I can’t get past a CSRF Failed: Origin checking failed error when creating a project.
Despite setting
DJANGO_CSRF_TRUSTED_ORIGINS, Django insidecvat_serveralways shows an empty list[].Environment
cvat-ai/cvatrepo (latestdevelopbranch)What I tried
http://localhost:8080.ngrok http 8080 --host-header="localhost:8080".env:docker-compose.override.yml:CVAT_DJANGO_CSRF_TRUSTED_ORIGINSvariantDJANGO_CSRF_TRUSTED_ORIGINS="https://*.ngrok-free.app,https://*.ngrok.app" docker compose up -dcvat/cvat/settings/base.pymanually with:Questions
CSRF_TRUSTED_ORIGINSso Django inside CVAT actually respects it?Thanks so much for reading — I’ve been stuck on this one issue for a while 🙏
Beta Was this translation helpful? Give feedback.
All reactions