Skip to content

Commit 8468b06

Browse files
authored
Merge pull request #70 from DouglasNeuroInformatics/cors-linux-dev-fix
fix: specify the Access-Control-Allow-Methods header
2 parents fbe49c8 + 5b0a23e commit 8468b06

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)