From 4f10e17d40cfee50ea4dd13f1b5f396fcd1d589a Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 29 Jan 2022 17:53:14 +0100 Subject: [PATCH] fix(frontend-config): iframe origins should be non-optional Signed-off-by: David Mehren --- src/frontend-config/frontend-config.dto.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend-config/frontend-config.dto.ts b/src/frontend-config/frontend-config.dto.ts index 78afde0ed..201890342 100644 --- a/src/frontend-config/frontend-config.dto.ts +++ b/src/frontend-config/frontend-config.dto.ts @@ -128,16 +128,14 @@ export class IframeCommunicationDto extends BaseDto { * @example https://md.example.com */ @IsUrl() - @IsOptional() - editorOrigin?: URL; + editorOrigin: URL; /** * The origin under which the renderer page will be served * @example https://md-renderer.example.com */ @IsUrl() - @IsOptional() - rendererOrigin?: URL; + rendererOrigin: URL; } export class FrontendConfigDto extends BaseDto {