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.
This commit is contained in:
Tunglies
2025-05-23 04:44:20 +08:00
parent 464f8095ab
commit 10e3010324

View File

@@ -58,6 +58,9 @@ impl IClashTemp {
"tauri://localhost", "tauri://localhost",
"http://tauri.localhost", "http://tauri.localhost",
"http://localhost:3000", "http://localhost:3000",
"https://yacd.metacubex.one",
"https://metacubex.github.io",
"https://board.zash.run.place",
] ]
.into(), .into(),
); );
@@ -95,6 +98,9 @@ impl IClashTemp {
"tauri://localhost", "tauri://localhost",
"http://tauri.localhost", "http://tauri.localhost",
"http://localhost:3000", "http://localhost:3000",
"https://yacd.metacubex.one",
"https://metacubex.github.io",
"https://board.zash.run.place",
] ]
.into(), .into(),
); );