Skip to content

Commit 5b0a23e

Browse files
committed
fix: specify the Access-Control-Allow-Methods header
1 parent fbe49c8 commit 5b0a23e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/app.utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export async function configureApp(
1616
await DocsFactory.configureDocs(app, { ...options.docs, version: options.version });
1717
}
1818

19-
app.enableCors();
19+
app.enableCors({
20+
methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'],
21+
origin: '*'
22+
});
2023
app.enableShutdownHooks();
2124
if (options.version) {
2225
app.enableVersioning({

0 commit comments

Comments
 (0)