Skip to content

Commit

Permalink
feat: add cors for phoexatrips
Browse files Browse the repository at this point in the history
  • Loading branch information
Myphz committed Jan 2, 2024
1 parent eba2b8c commit 72d4fab
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",
"http://phoexatrips",
"https://phoexatrips",
],
}),
);

Expand Down

0 comments on commit 72d4fab

Please sign in to comment.