From 10e3010324e6f50499ee5788e3338c2bc7214e5d Mon Sep 17 00:00:00 2001 From: Tunglies Date: Fri, 23 May 2025 04:44:20 +0800 Subject: [PATCH] feat(config): add new allowed origins for CORS in clash.rs (#3569) Include "https://yacd.metacubex.one", "https://metacubex.github.io", and "https://board.zash.run.place" to the list of allowed origins for both HTTP and WebSocket configurations. --- src-tauri/src/config/clash.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src-tauri/src/config/clash.rs b/src-tauri/src/config/clash.rs index c16ec2d37..aca558e5b 100644 --- a/src-tauri/src/config/clash.rs +++ b/src-tauri/src/config/clash.rs @@ -58,6 +58,9 @@ impl IClashTemp { "tauri://localhost", "http://tauri.localhost", "http://localhost:3000", + "https://yacd.metacubex.one", + "https://metacubex.github.io", + "https://board.zash.run.place", ] .into(), ); @@ -95,6 +98,9 @@ impl IClashTemp { "tauri://localhost", "http://tauri.localhost", "http://localhost:3000", + "https://yacd.metacubex.one", + "https://metacubex.github.io", + "https://board.zash.run.place", ] .into(), );