Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Fixing the CSRF bug for labelstudio versions 1.14.0 and higher

Behzad Samadie6b18937d00a
diff --git a/templates/compose/labelstudio.yaml b/templates/compose/labelstudio.yaml
index de9ce9da90..9f2d1738d9 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}