Skip to content

Commit bd74803

Browse files
committed
refactor(cors): adjust origin for production environments
1 parent f9a7760 commit bd74803

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ const app = new Hono();
7171
app.use(
7272
// enable CORS
7373
cors({
74-
origin: isProdEnv ? appConfig.url : "https://localhost:3000",
74+
origin: isProdEnv
75+
? [appConfig.url, "https://backfeed-app-prerelease.up.railway.app"]
76+
: "https://localhost:3000",
7577
credentials: true,
7678
allowMethods: ["GET", "POST"],
7779
}),

0 commit comments

Comments
 (0)