From 72d4fab585fb89c49fba21398adff5a564f900c7 Mon Sep 17 00:00:00 2001 From: Myphz Date: Tue, 2 Jan 2024 22:50:25 +0100 Subject: [PATCH] feat: add cors for phoexatrips --- src/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 05f03b4..92c7e18 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", + "http://phoexatrips", + "https://phoexatrips", + ], }), );