Skip to content

Commit b9416bc

Browse files
committed
feat(deploy): add cors logic
1 parent 3062ef8 commit b9416bc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • nodejs-autospace/api-gateway/src

nodejs-autospace/api-gateway/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const allowedOrigins = [
3232
"https://www.autospace.space",
3333
];
3434

35+
app.set("trust proxy", 1);
36+
3537
app.use(
3638
cors({
3739
origin: (origin, callback) => {

0 commit comments

Comments
 (0)