Reuse backend headers for credential route proxy

This commit is contained in:
Winston Howes
2026-06-05 10:21:58 -07:00
parent 46b3c36f2e
commit 552bc746d9
4 changed files with 16 additions and 3 deletions
@@ -55,6 +55,10 @@ pub fn with_chatgpt_cloudflare_cookie_store(
builder.cookie_provider(Arc::clone(&SHARED_CHATGPT_CLOUDFLARE_COOKIE_STORE))
}
pub fn chatgpt_cloudflare_cookie_header(url: &reqwest::Url) -> Option<HeaderValue> {
SHARED_CHATGPT_CLOUDFLARE_COOKIE_STORE.cookies(url)
}
fn is_chatgpt_cookie_url(url: &reqwest::Url) -> bool {
match url.scheme() {
"https" => {}
+1
View File
@@ -9,6 +9,7 @@ mod sse;
mod telemetry;
mod transport;
pub use crate::chatgpt_cloudflare_cookies::chatgpt_cloudflare_cookie_header;
pub use crate::chatgpt_cloudflare_cookies::with_chatgpt_cloudflare_cookie_store;
pub use crate::chatgpt_hosts::is_allowed_chatgpt_host;
pub use crate::custom_ca::BuildCustomCaTransportError;