feat: iframe configuration

This commit is contained in:
Philipinho
2026-05-18 22:02:31 +01:00
parent b7b99cb3b2
commit 0d6538ab1a
5 changed files with 66 additions and 0 deletions

View File

@@ -325,4 +325,19 @@ export class EnvironmentService {
.toLowerCase();
return disabled === 'true';
}
isIframeEmbedAllowed(): boolean {
const allowed = this.configService
.get<string>('IFRAME_EMBED_ALLOWED', 'false')
.toLowerCase();
return allowed === 'true';
}
getIframeAllowedOrigins(): string[] {
const raw = this.configService.get<string>('IFRAME_ALLOWED_ORIGINS', '');
return raw
.split(',')
.map((o) => o.trim())
.filter(Boolean);
}
}