From 028f780f5a4535dde530daa63b9801c1886a835a Mon Sep 17 00:00:00 2001 From: Myphz Date: Sat, 13 Jan 2024 14:46:33 +0100 Subject: [PATCH] chore: add cors --- src/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 05f03b4..764d694 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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", + ], }), );