fix(frontend-config): iframe origins should be non-optional

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-01-29 17:53:14 +01:00
parent 67743b7cf5
commit 4f10e17d40

View file

@ -128,16 +128,14 @@ export class IframeCommunicationDto extends BaseDto {
* @example https://md.example.com * @example https://md.example.com
*/ */
@IsUrl() @IsUrl()
@IsOptional() editorOrigin: URL;
editorOrigin?: URL;
/** /**
* The origin under which the renderer page will be served * The origin under which the renderer page will be served
* @example https://md-renderer.example.com * @example https://md-renderer.example.com
*/ */
@IsUrl() @IsUrl()
@IsOptional() rendererOrigin: URL;
rendererOrigin?: URL;
} }
export class FrontendConfigDto extends BaseDto { export class FrontendConfigDto extends BaseDto {