mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: update CORS allow-origins to support tauri local development
- Replaced 'http://localhost' and 'http://127.0.0.1' with 'tauri://localhost' and 'http://tauri.localhost' for enhanced compatibility with Tauri development environment. - Ensures proper CORS configuration for local testing.
This commit is contained in:
@@ -55,8 +55,8 @@ impl IClashTemp {
|
|||||||
cors_map.insert(
|
cors_map.insert(
|
||||||
"allow-origins".into(),
|
"allow-origins".into(),
|
||||||
vec![
|
vec![
|
||||||
"http://localhost",
|
"tauri://localhost",
|
||||||
"http://127.0.0.1",
|
"http://tauri.localhost",
|
||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
]
|
]
|
||||||
.into(),
|
.into(),
|
||||||
@@ -92,8 +92,8 @@ impl IClashTemp {
|
|||||||
cors_map.insert(
|
cors_map.insert(
|
||||||
"allow-origins".into(),
|
"allow-origins".into(),
|
||||||
vec![
|
vec![
|
||||||
"http://localhost",
|
"tauri://localhost",
|
||||||
"http://127.0.0.1",
|
"http://tauri.localhost",
|
||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
]
|
]
|
||||||
.into(),
|
.into(),
|
||||||
|
|||||||
Reference in New Issue
Block a user