diff --git a/server/api/src/utils/request.rs b/server/api/src/utils/request.rs index e4ddf144..3ca27000 100644 --- a/server/api/src/utils/request.rs +++ b/server/api/src/utils/request.rs @@ -26,7 +26,7 @@ pub async fn send_api_req( let req = if let Some(api_key) = project.api_key { if let Some((username, password)) = api_key.split_once(":") { let (username, password) = (username.trim(), password.trim()); - if *scanner_type == ScannerType::Unown { + if *scanner_type == ScannerType::Unown || !project.scanner { req.get(endpoint).header(username, password) } else { req.get(endpoint).basic_auth(username, Some(password))