[core] Enable cors
This commit is contained in:
1 parent
9ebbd9a1fd
commit
c3967173a1
1 file changed
+1
@@ -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' }));
|
||||
|
||||
Reference in new issue
Block a user