Proxy System
The protondrive-linux Tauri shell proxies HTTP requests from the WebView to Proton’s API, sharing a cookie jar between the native reqwest client and the WebKit webview.
Overview
The proxy intercepts requests from Proton’s WebClients frontend and forwards them through a Rust-based HTTP proxy. This allows:
- Shared cookie state between the frontend and backend
- Request/response inspection and modification
- CORS handling and header injection
- Rate limiting and retry logic
Architecture
Requests flow through the Tauri IPC bridge, are processed by the Rust proxy middleware, and forwarded to Proton’s API endpoints. Responses are returned to the WebView with headers adjusted for CORS compliance.
Source
See src-tauri/src/ for the proxy implementation details.