From a66149baaaf96950095bf6228d304999fa3776f2 Mon Sep 17 00:00:00 2001 From: naterfute Date: Mon, 7 Apr 2025 00:56:08 -0700 Subject: [PATCH] fix: cors error --- blueprints/plane/template.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprints/plane/template.toml b/blueprints/plane/template.toml index bf42720..858e7c8 100644 --- a/blueprints/plane/template.toml +++ b/blueprints/plane/template.toml @@ -8,8 +8,8 @@ secret_key = "${base64:48}" [config] env = [ -"Domain=${main_domain}", -"WEB_URL=${main_domain}", +"Domain=${host}", +"WEB_URL=${host}", "PGHOST=plane-db", "PGDATABASE=plane", "POSTGRES_USER=${username}", @@ -40,7 +40,7 @@ env = [ "DEBUG=0", "SENTRY_DSN=", "SENTRY_ENVIRONMENT=production", -"CORS_ALLOWED_ORIGINS=", +"CORS_ALLOWED_ORIGINS=%{host}%", "GUNICORN_WORKERS=1", "USE_MINIO=1", "DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@plane-db/plane",