We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Origin
1 parent d9fa37a commit da8a7bbCopy full SHA for da8a7bb
.changes/http-origin-duplicated.md
@@ -0,0 +1,5 @@
1
+---
2
+"http": "patch"
3
4
+
5
+Fix `ORIGIN` header containing 2 URLs when `unsafe-headers` feature flag is enabled.
plugins/http/src/commands.rs
@@ -224,8 +224,8 @@ pub async fn fetch<R: Runtime>(
224
request = request.header(header::USER_AGENT, "tauri-plugin-http");
225
}
226
227
- if !(cfg!(feature = "unsafe-headers")
228
- && headers.contains_key(header::ORIGIN.as_str()))
+ if cfg!(feature = "unsafe-headers")
+ && !headers.contains_key(header::ORIGIN.as_str())
229
{
230
if let Ok(url) = webview.url() {
231
request =
0 commit comments