Im just studying CEF. The issues of CEF are very helpful to me.
https://bitbucket.org/chromiumembedded/ ... irect-with
I tried to make a simple modification to the linked issue above.
libcef/browser/net_service/proxy_url_loader_factory.cc
- Code: Select all
void InterceptedRequest::InterceptResponseReceived(
const GURL& original_url,
std::unique_ptr<ResourceResponse> response) {
if (request_.url != original_url) {
...
network::cors::header_names::kAccessControlAllowOrigin, origin));
}
+ if(request_.fetch_credentials_mode == network::mojom::FetchCredentialsMode::kInclude) {
+ head.headers->AddHeader(MakeHeader(
+ network::cors::header_names::kAccessControlAllowCredentials, "true"));
+ }
current_response_ = head;
...
I confirmed that it works only for the issue case. so... I want to get a review about the simple modifications above.
Also i wonder how the redirect request cancels the previous request and works.
Thank you very much if you can give me a link or comment on it.