-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
403 Forbidden with CSRF verification failed after updating label-sutdio version [GKE] [helm chart] #6606
Comments
Same issue here. Label Studio deployed in our Kubernetes Cluster. After the upgrade from 1.13.2 to 1.14.0, using Edge or Firefox in Linux results in the CSRF validation failed error. |
Quick debugging step: does it work if you specify |
I've already wanted to say that it also didn't work using
|
|
Thank you for your reply, I just tried with removing |
In fact it works ! Thank you ! global:
...
extraEnvironmentVars:
EXPERIMENTAL_FEATURES: 1
CSRF_TRUSTED_ORIGINS: "https://labelstudio.ourdomain.com"
SSRF_PROTECTION_ENABLED: "true"
... |
My problem solved, I close this issue, thank you all ! |
I am on Label Studio 1.14.0 and I am facing the same problem.
After specifying the following variables, it worked.
|
I added these flags but I still have the same CRSF error |
Hello guys, can someone tell me where can I change these variables? I can't find the file. Thanks |
Hey @m4tej241. It depends on how you implement labelstudio. In my case I use officiel helm chart to deploy on Kubernetes. The configurations can be added in helm repo add heartex https://charts.heartex.com/
helm repo update
helm upgrade --install labelstudio heartex/label-studio -n prod -f prod/label-studio.yaml The goal is to create/modify environment variables, for more information you can refer to this doc: |
Hello @ArmandXUuu I just cloned the github repo and that's it. Is it possible to include it inside .env file that I have in the web folder? |
It got fixxed for me when I firstly run the backend server and log in and then turn the frontend server aswell. Before I was starting the frontend while being on the log screen with backend and that caused the error when I tried logging on the frontend server. Hopefully this makes sense to some of you. Take care |
Describe the bug
Our team has a LabelStudio deployment via helm chart on a Google (Cloud) Kubernetes Engine
After trying to bump the docker image version from 1.13.1 to 1.14.0 users could no longer login with an error saying "Forbidden (403) CSRF verification failed" (see screenshot)
To ReproduceAbout our implementationWe used this chart:
with custom values.yaml + image
heartexlabs/label-studio:1.14.0
Other values remain nearly the same as here
Expected behavior
A user should be able to login without any problem
Screenshots


Environment:
Additional context
I'd be happy to provide more information.
The text was updated successfully, but these errors were encountered: