mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-21 15:51:51 +00:00
PrivateApi: Add CORS-Header for rendererOrigin
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
526ee6e506
commit
75466c5202
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ async function bootstrap(): Promise<void> {
|
|||
);
|
||||
}
|
||||
|
||||
app.enableCors({
|
||||
origin: appConfig.rendererOrigin,
|
||||
});
|
||||
logger.log(`Enabling CORS for '${appConfig.rendererOrigin}'`, 'AppBootstrap');
|
||||
|
||||
app.useGlobalPipes(
|
||||
new ValidationPipe({
|
||||
forbidUnknownValues: true,
|
||||
|
|
Loading…
Reference in a new issue