diff --git a/src-tauri/src/config/clash.rs b/src-tauri/src/config/clash.rs index faf9f7e2f..c16ec2d37 100644 --- a/src-tauri/src/config/clash.rs +++ b/src-tauri/src/config/clash.rs @@ -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(),