[core] Enable cors

This commit is contained in:
allburov committed 2024-04-28 17:35:52 +07:00
1 parent 9ebbd9a1fd
commit c3967173a1
1 file changed
+1
+1
View File
@@ -36,6 +36,7 @@ async function bootstrap() {
app.enableShutdownHooks();
app.useGlobalFilters(new AllExceptionsFilter());
app.enableCors();
// Allow to send big body - for images and attachments
app.use(json({ limit: '50mb' }));