feat: Allow superset to be deployed under a prefixed URL (#30134)

Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
Martyn Gigg
2025-04-09 21:43:44 +01:00
committed by GitHub
parent 31ac3898ad
commit 09b92e7d08
100 changed files with 733 additions and 319 deletions

View File

@@ -26,5 +26,5 @@ export default function setupSupersetClient() {
// including CSRF authentication and initialization
global.FormData = window.FormData; // used by SupersetClient
fetchMock.get('glob:*/api/v1/security/csrf_token/*', { result: '1234' });
SupersetClient.configure({ protocol: 'http', host: 'localhost' }).init();
SupersetClient.configure({ protocol: 'http:', host: 'localhost' }).init();
}