Skip to content

Commit da3eedb

Browse files
committed
chore(server): remove prerelease URL from CORS
1 parent 1e1211d commit da3eedb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ const app = new Hono();
8181
app.use(
8282
// enable CORS
8383
cors({
84-
origin: isProdEnv
85-
? // TODO remove prerelease URL once ready
86-
[appConfig.url, "https://backfeed-prerelease.omni.dev"]
87-
: "https://localhost:3000",
84+
origin: isProdEnv ? appConfig.url : "https://localhost:3000",
8885
credentials: true,
8986
allowMethods: ["GET", "POST"],
9087
}),

0 commit comments

Comments
 (0)