1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibWeb: Set Cookie header on remaining resource requests

This commit is contained in:
Timothy Flynn 2021-04-14 10:41:14 -04:00 committed by Andreas Kling
parent 0cacc52990
commit 0f47a23e8e
4 changed files with 5 additions and 9 deletions

View file

@ -202,9 +202,8 @@ DOM::ExceptionOr<void> XMLHttpRequest::send()
return {};
}
LoadRequest request;
auto request = LoadRequest::create_for_url_on_page(request_url, m_window->document().page());
request.set_method(m_method);
request.set_url(request_url);
for (auto& it : m_request_headers)
request.set_header(it.key, it.value);