fix: allow net requests to use Same-Site cookies (#22788)
This commit is contained in:
parent
60bd52880f
commit
af46c1ed8d
2 changed files with 43 additions and 0 deletions
|
@ -345,6 +345,7 @@ gin_helper::WrappableBase* SimpleURLLoaderWrapper::New(gin::Arguments* args) {
|
|||
return nullptr;
|
||||
}
|
||||
auto request = std::make_unique<network::ResourceRequest>();
|
||||
request->attach_same_site_cookies = true;
|
||||
opts.Get("method", &request->method);
|
||||
opts.Get("url", &request->url);
|
||||
std::map<std::string, std::string> extra_headers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue