diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index b9c1cae2a7..de0e2586d0 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -254,15 +254,6 @@ pub async fn fetch( request = request.header(header::USER_AGENT, HTTP_USER_AGENT); } - if cfg!(feature = "unsafe-headers") - && !headers.contains_key(header::ORIGIN.as_str()) - { - if let Ok(url) = webview.url() { - request = - request.header(header::ORIGIN, url.origin().ascii_serialization()); - } - } - if let Some(data) = data { request = request.body(data); }