Skip to content

Commit

Permalink
fix: set enable_negotiate_port to false in allowNTLMCredentialsForDom…
Browse files Browse the repository at this point in the history
…ains (#21572)
  • Loading branch information
nornagon authored and MarshallOfSound committed Dec 19, 2019
1 parent 2dc4297 commit 0569c92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell/browser/api/atom_api_session.cc
Expand Up @@ -11,6 +11,7 @@
#include <utility>
#include <vector>

#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/guid.h"
#include "base/strings/string_number_conversions.h"
Expand Down Expand Up @@ -484,6 +485,9 @@ void Session::AllowNTLMCredentialsForDomains(const std::string& domains) {
network::mojom::HttpAuthDynamicParamsPtr auth_dynamic_params =
network::mojom::HttpAuthDynamicParams::New();
auth_dynamic_params->server_allowlist = domains;
auth_dynamic_params->enable_negotiate_port =
base::CommandLine::ForCurrentProcess()->HasSwitch(
electron::switches::kEnableAuthNegotiatePort);
content::GetNetworkService()->ConfigureHttpAuthPrefs(
std::move(auth_dynamic_params));
}
Expand Down

0 comments on commit 0569c92

Please sign in to comment.