Add per-domain toggle to disable automatic HTTP redirect following in the Native and Agent interceptors. When disabled, requests return the redirect response (status code, headers, body) without following the Location header. Previously HTTP redirects were always followed (on browser, can't do much about that, see https://fetch.spec.whatwg.org/#atomic-http-redirect-handling) without option to inspect the redirect response itself. This prevented developers from accessing redirect metadata needed when testing OAuth flows (PKCE where intermediate responses contain authorization tokens), authentication endpoints that return codes in Location headers with 302 status, and debugging API redirect chains. But on the desktop app, redirects were just never followed, creating the opposite effect. The browser's fetch API applies atomic HTTP redirect handling per spec, making it impossible to intercept redirects and inspect their responses. The Native and Agent interceptors use curl and native HTTP clients respectively, both supporting redirect control, making this feature viable for these specific interceptors. (Proxyscotch tbd).
60 lines
2 KiB
TOML
60 lines
2 KiB
TOML
[package]
|
|
name = "hoppscotch-desktop"
|
|
version = "25.9.2"
|
|
description = "Desktop App for hoppscotch.io"
|
|
authors = ["CuriousCorrelation"]
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
# The `_lib` suffix may seem redundant but it is necessary
|
|
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
name = "hoppscotch_desktop_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["devtools"] }
|
|
tauri-plugin-shell = { version = "2.2.1", features = [] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { version = "1", features = [] }
|
|
tracing = "0.1.41"
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
|
tracing-appender = { version = "0.2.3" }
|
|
tauri-plugin-store = "2.2.0"
|
|
tauri-plugin-dialog = "2.2.0"
|
|
tauri-plugin-fs = "2.2.0"
|
|
tauri-plugin-deep-link = "2.2.0"
|
|
tauri-plugin-appload = { git = "https://github.com/CuriousCorrelation/tauri-plugin-appload", rev = "e05861959938b57479a1a81fa796735ebbd08c7c" }
|
|
tauri-plugin-relay = { git = "https://github.com/CuriousCorrelation/tauri-plugin-relay", rev = "7cf09c1ad31e228758738c2f4e1c8fe9cc141291" }
|
|
axum = "0.8.1"
|
|
tower-http = { version = "0.6.2", features = ["cors"] }
|
|
random-port = "0.1.1"
|
|
tokio = "1.43.0"
|
|
tauri-plugin-process = "2.2.0"
|
|
file-rotate = "0.8.0"
|
|
dirs = "6.0.0"
|
|
thiserror = "2.0.12"
|
|
native-dialog = { version = "0.7.0" }
|
|
tauri-plugin-http = { version = "2.0.1", features = ["gzip"] }
|
|
tauri-plugin-opener = "2"
|
|
semver = "1.0"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.20.0"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
tempfile = { version = "3.13.0" }
|
|
winreg = { version = "0.52.0" }
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
tauri-plugin-updater = "2.3.1"
|
|
tauri-plugin-window-state = "2.2.1"
|
|
|
|
[features]
|
|
default = []
|
|
portable = []
|