Commit 1edc326
fix(http): enable unsafe-headers feature on tauri-plugin-http
Without this Cargo feature, plugin-http silently drops user-supplied
"forbidden" headers (Origin, Referer, User-Agent) before they reach
reqwest, even when set explicitly via the JS fetch() options. This is
why the Origin/Referer added to TauriHlsLoader in 542b2d4 had no
effect on Windows: Twitch's CDN edges 403 anything that's not a
twitch.tv origin (verified from PowerShell that whitelisted
*.twitch.tv origins return 200 while http://tauri.localhost returns
403), and our headers were being filtered out on the way through.
With unsafe-headers enabled, the headers we set in TauriHlsLoader
reach the wire as-is.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent abf6421 commit 1edc326
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments