From 91006ec31496af5324adb2ac010f20d1958fa61d Mon Sep 17 00:00:00 2001 From: Devasia Joseph Date: Thu, 17 Jul 2025 10:41:10 +0530 Subject: [PATCH] feat: add CMS base domain to enable session-based API access (#37014) --- cms/envs/devstack.py | 3 ++- cms/envs/production.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index d473a23290..6ff0b03789 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -350,6 +350,7 @@ SPECTACULAR_SETTINGS = { 'SCHEMA_PATH_PREFIX_TRIM': '/api/contentstore', 'SERVERS': [ {'url': AUTHORING_API_URL, 'description': 'Public'}, - {'url': f'http://{CMS_BASE}/api/contentstore', 'description': 'Local'} + {'url': f'http://{CMS_BASE}', 'description': 'Local'}, + {'url': f'http://{CMS_BASE}/api/contentstore', 'description': 'CMS-contentstore'} ], } diff --git a/cms/envs/production.py b/cms/envs/production.py index 4ba05e1ab4..632cb8f1cc 100644 --- a/cms/envs/production.py +++ b/cms/envs/production.py @@ -481,7 +481,8 @@ SPECTACULAR_SETTINGS = { 'SCHEMA_PATH_PREFIX_TRIM': '/api/contentstore', 'SERVERS': [ {'url': AUTHORING_API_URL, 'description': 'Public'}, - {'url': f'https://{CMS_BASE}/api/contentstore', 'description': 'Local'}, + {'url': f'https://{CMS_BASE}', 'description': 'Local'}, + {'url': f'https://{CMS_BASE}/api/contentstore', 'description': 'CMS-contentstore'} ], }