Skip to content

Commit

Permalink
chore: add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Myphz committed Jan 13, 2024
1 parent 1595171 commit 028f780
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ const PORT = process.env.PORT ? parseInt(process.env.PORT) : 8080;

app.use(
cors({
origin: ["http://localhost:5173", "http://localhost", "https://localhost", "capacitor://localhost"],
origin: [
"http://localhost:5173",
"http://localhost",
"https://localhost",
"capacitor://localhost",
"https://phoexatrips",
"http://phoexatrips",
],
}),
);

Expand Down

0 comments on commit 028f780

Please sign in to comment.