Skip to content

Commit ebc00b7

Browse files
committed
disable cors origin
1 parent 8c8d740 commit ebc00b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ async function bootstrap() {
1717
allowedHeaders:
1818
'Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Control-Allow-Origin, Access-Control-Allow-Headers,currentOrg,overrideOrg,x-atlassian-cloud-id,x-api-key,x-orgid',
1919
credentials: true,
20-
origin: process.env.CORS_ALLOWED_ORIGIN
21-
? new RegExp(process.env.CORS_ALLOWED_ORIGIN)
22-
: ['http://localhost:3000', /\.localhost:3000$/],
20+
// origin: process.env.CORS_ALLOWED_ORIGIN
21+
// ? new RegExp(process.env.CORS_ALLOWED_ORIGIN)
22+
// : ['http://localhost:3000', /\.localhost:3000$/],
2323
methods: 'GET, POST, OPTIONS, PUT, DELETE, PATCH',
2424
};
2525
app.use(cors(corsConfig));

0 commit comments

Comments
 (0)