mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fix: allow net requests to use Same-Site cookies (#22788)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user