From 22307d44de8572d667f47ae03992df6a01d8e138 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Mon, 15 Jun 2026 17:09:40 +0700 Subject: [PATCH] fix(api): add http://tauri.localhost to CORS allowed origins --- apps/api/src/config/env.ts | 1 + apps/tauri/.idea/.gitignore | 3 + apps/tauri/.idea/caches/deviceStreaming.xml | 1870 +++++++++++++++++++ apps/tauri/.idea/deviceManager.xml | 13 + apps/tauri/.idea/misc.xml | 17 + apps/tauri/.idea/modules.xml | 8 + apps/tauri/.idea/tauri.iml | 9 + apps/tauri/.idea/vcs.xml | 6 + 8 files changed, 1927 insertions(+) create mode 100644 apps/tauri/.idea/.gitignore create mode 100644 apps/tauri/.idea/caches/deviceStreaming.xml create mode 100644 apps/tauri/.idea/deviceManager.xml create mode 100644 apps/tauri/.idea/misc.xml create mode 100644 apps/tauri/.idea/modules.xml create mode 100644 apps/tauri/.idea/tauri.iml create mode 100644 apps/tauri/.idea/vcs.xml diff --git a/apps/api/src/config/env.ts b/apps/api/src/config/env.ts index 0a36135..3501d5a 100644 --- a/apps/api/src/config/env.ts +++ b/apps/api/src/config/env.ts @@ -11,6 +11,7 @@ const webAppUrl = Bun.env.WEB_APP_URL ?? 'http://localhost:5173'; const allowedOrigins = [ webAppUrl, 'https://tauri.localhost', + 'http://tauri.localhost', 'tauri://localhost', 'http://localhost:5173', ]; diff --git a/apps/tauri/.idea/.gitignore b/apps/tauri/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/apps/tauri/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/apps/tauri/.idea/caches/deviceStreaming.xml b/apps/tauri/.idea/caches/deviceStreaming.xml new file mode 100644 index 0000000..76d03c2 --- /dev/null +++ b/apps/tauri/.idea/caches/deviceStreaming.xml @@ -0,0 +1,1870 @@ + + + + + + \ No newline at end of file diff --git a/apps/tauri/.idea/deviceManager.xml b/apps/tauri/.idea/deviceManager.xml new file mode 100644 index 0000000..91f9558 --- /dev/null +++ b/apps/tauri/.idea/deviceManager.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/apps/tauri/.idea/misc.xml b/apps/tauri/.idea/misc.xml new file mode 100644 index 0000000..fea0f74 --- /dev/null +++ b/apps/tauri/.idea/misc.xml @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/tauri/.idea/modules.xml b/apps/tauri/.idea/modules.xml new file mode 100644 index 0000000..7cec67a --- /dev/null +++ b/apps/tauri/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/apps/tauri/.idea/tauri.iml b/apps/tauri/.idea/tauri.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/apps/tauri/.idea/tauri.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/apps/tauri/.idea/vcs.xml b/apps/tauri/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/apps/tauri/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file