This commit is contained in:
2026-06-25 12:57:43 -05:00
parent 6c6514e70f
commit 7b622fb2fd
3 changed files with 57 additions and 8 deletions

View File

@@ -12,6 +12,12 @@ export function getBooleanSetting(key, fallback) {
return String(value).toLowerCase() === 'true';
}
export function getStringSetting(key, fallback = '') {
const value = getSetting(key);
const normalized = String(value ?? '').trim();
return normalized || fallback;
}
// Effective CORS allow-list: admin-editable `trusted_origins` merged with the
// built-in localhost defaults so the dev experience never locks itself out.
export function effectiveTrustedOrigins() {