mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
PrivateApi: Add CORS-Header for rendererOrigin
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
bf13668548
commit
162f736647
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(
|
app.useGlobalPipes(
|
||||||
new ValidationPipe({
|
new ValidationPipe({
|
||||||
forbidUnknownValues: true,
|
forbidUnknownValues: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue