From e6b18937d00a3598bcae65be630824c80f6c09e5 Mon Sep 17 00:00:00 2001 From: Behzad Samadi Date: Tue, 31 Dec 2024 16:27:00 -0500 Subject: [PATCH] Fixing the CSRF bug for labelstudio versions 1.14.0 and higher --- templates/compose/labelstudio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/compose/labelstudio.yaml b/templates/compose/labelstudio.yaml index de9ce9da9..9f2d1738d 100644 --- a/templates/compose/labelstudio.yaml +++ b/templates/compose/labelstudio.yaml @@ -12,6 +12,8 @@ services: condition: service_healthy environment: - SERVICE_FQDN_LABELSTUDIO_8080 + - CSRF_TRUSTED_ORIGINS=${SERVICE_FQDN_LABELSTUDIO} + - EXPERIMENTAL_FEATURES=${EXPERIMENTAL_FEATURES:-1} - DJANGO_DB=${DJANGO_DB:-default} - POSTGRE_NAME=${POSTGRES_DB:-labelstudio} - POSTGRE_USER=${SERVICE_USER_POSTGRES}