feat: add CMS base domain to enable session-based API access (#37014)

This commit is contained in:
Devasia Joseph
2025-07-17 10:41:10 +05:30
committed by GitHub
parent 4000d08f74
commit 91006ec314
2 changed files with 4 additions and 2 deletions

View File

@@ -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'}
],
}

View File

@@ -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'}
],
}