Files
tauri-plugins-workspace/.changes/http-scope-redirects-default.md
T
Lucas Fernandes Nogueira 34a06e7f60 refactor(http)!: always enforce the scope on redirects (#3600)
* refactor(http)!: always enforce the scope on redirects

Removes the `scopeRedirects` option (and the `Config` struct with it) that
was added as an opt-in in 2.7.0. Every hop of a redirect chain is now
checked against the URL scope, so a server on an allowed origin can no
longer redirect the request to a URL the scope denies.

`tauri_plugin_http::init()` returns `TauriPlugin<R>` again.

* chore(http): compile without warnings when the cookies feature is disabled
2026-09-22 06:03:27 -03:00

512 B

http, http-js
http http-js
major major

Breaking: The URL scope is now always checked on every hop of a redirect chain, so every redirect target must be allowed by the scope or the request fails with url not allowed on the configured scope. This was previously opt-in through the scopeRedirects plugin configuration, which has been removed along with the Config struct: tauri_plugin_http::init() returns TauriPlugin<R> again, and any plugins > http object must be removed from tauri.conf.json.