net: Don't ignore the referer header in net.request (#23386)
This commit is contained in:
parent
0a481242f0
commit
9d851b8791
4 changed files with 35 additions and 0 deletions
|
@ -352,6 +352,7 @@ gin::Handle<SimpleURLLoaderWrapper> SimpleURLLoaderWrapper::Create(
|
|||
request->force_ignore_site_for_cookies = true;
|
||||
opts.Get("method", &request->method);
|
||||
opts.Get("url", &request->url);
|
||||
opts.Get("referrer", &request->referrer);
|
||||
std::map<std::string, std::string> extra_headers;
|
||||
if (opts.Get("extraHeaders", &extra_headers)) {
|
||||
for (const auto& it : extra_headers) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue