diff --git a/src-tauri/utils/src/http.rs b/src-tauri/utils/src/http.rs index 3fd4007ec..bdae2d262 100644 --- a/src-tauri/utils/src/http.rs +++ b/src-tauri/utils/src/http.rs @@ -6,6 +6,10 @@ pub fn is_cors_header(header_name: &str) -> bool { /// Validates if host is in trusted hosts list pub fn is_valid_host(host: &str, trusted_hosts: &[Vec]) -> bool { + if trusted_hosts.iter().any(|hosts| hosts.contains(&"*".to_string())) { + return true; + } + if host.is_empty() { return false; }