We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2263784 commit c1e4c12Copy full SHA for c1e4c12
1 file changed
cli/src/server.ts
@@ -37,7 +37,7 @@ function generateOperationId(): string {
37
}
38
39
const corsOptions: CorsOptions = {
40
- origin: ['https://npmx.dev', 'http://localhost:3000'],
+ origin: ['https://npmx.dev', /^http:\/\/localhost:\d+$/],
41
methods: ['GET', 'POST', 'DELETE', 'OPTIONS'],
42
allowHeaders: ['Content-Type', 'Authorization'],
43
0 commit comments