mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Reuse backend headers for credential route proxy
This commit is contained in:
@@ -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" => {}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user