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(
|
||||
"allow-origins".into(),
|
||||
vec![
|
||||
"http://localhost",
|
||||
"http://127.0.0.1",
|
||||
"tauri://localhost",
|
||||
"http://tauri.localhost",
|
||||
"http://localhost:3000",
|
||||
]
|
||||
.into(),
|
||||
@@ -92,8 +92,8 @@ impl IClashTemp {
|
||||
cors_map.insert(
|
||||
"allow-origins".into(),
|
||||
vec![
|
||||
"http://localhost",
|
||||
"http://127.0.0.1",
|
||||
"tauri://localhost",
|
||||
"http://tauri.localhost",
|
||||
"http://localhost:3000",
|
||||
]
|
||||
.into(),
|
||||
|
||||
Reference in New Issue
Block a user