Skip to content

Commit

Permalink
Trial fix for CORS pre-flight requests missing headers (see issue chr…
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenblatt committed Nov 9, 2021
1 parent 4c7ac2d commit e83d8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcef/browser/net_service/proxy_url_loader_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ class CorsPreflightRequest : public network::mojom::TrustedHeaderClient {
// mojom::TrustedHeaderClient methods:
void OnBeforeSendHeaders(const net::HttpRequestHeaders& headers,
OnBeforeSendHeadersCallback callback) override {
std::move(callback).Run(net::OK, absl::nullopt);
std::move(callback).Run(net::OK, headers);
}

void OnHeadersReceived(const std::string& headers,
const net::IPEndPoint& remote_endpoint,
OnHeadersReceivedCallback callback) override {
std::move(callback).Run(net::OK, absl::nullopt, GURL());
std::move(callback).Run(net::OK, headers, /*redirect_url=*/GURL());
OnDestroy();
}

Expand Down

0 comments on commit e83d8d6

Please sign in to comment.