Bug 264309

Summary: HTTP Connect proxy authorization header is not sent when using proxyConfigurations API
Product: WebKit Reporter: Ali Juma <ajuma>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: ap, beidson, cdumez, pastarmovj, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Ali Juma
Reported 2023-11-06 17:58:40 PST
An HTTP Connect proxy configuration on which an nw_proxy_config_set_username_and_password call has been made, does not send the Proxy-Authorization header to the proxy server (not initially, and also not after getting a 407 Proxy Authentication Required response). Specifically, creating the proxy using: nw_endpoint_t endpoint = nw_endpoint_create_host("localhost", "8080"); nw_proxy_config_t proxyConfig = nw_proxy_config_create_http_connect(endpoint, nil); nw_proxy_config_set_username_and_password(proxyConfig, "alice", "superSecret"); and then setting it on WKWebsiteDataStore, I do get CONNECT requests to the proxy server, but the Proxy-Authorization header is never sent, not even after the server responds with 407 (Proxy Authentication Required). I've also filed FB13343450 with a sample app.
Attachments
Alexey Proskuryakov
Comment 1 2023-11-07 10:05:14 PST
Alexey Proskuryakov
Comment 2 2024-03-08 15:44:14 PST
This ended up being tracked as an issue below WebKit. Please continue communicating about this via Feedback Assistant.
Note You need to log in before you can comment on or make changes to this bug.