bring back app.allowNTLMCredentialsForAllDomains

This commit is contained in:
deepak1556 2016-05-23 01:52:09 +05:30
parent 3db2daf790
commit 62cad610e0
2 changed files with 6 additions and 3 deletions

View file

@ -443,9 +443,7 @@ Adds `tasks` to the [Tasks][tasks] category of the JumpList on Windows.
consists of two or more icons, set this value to identify the icon. If an
icon file consists of one icon, this value is 0.
### `app.allowNTLMCredentialsForAllDomains(allow)`
* `allow` Boolean
### `app.allowNTLMCredentialsForAllDomains()`
Dynamically sets whether to always send credentials for HTTP NTLM or Negotiate
authentication - normally, Electron will only send NTLM/Kerberos credentials for
@ -453,6 +451,8 @@ URLs that fall under "Local Intranet" sites (i.e. are in the same domain as you)
However, this detection often fails when corporate networks are badly configured,
so this lets you co-opt this behavior and enable it for all URLs.
**Note:** This method should be called before the `ready` event gets emitted.
### `app.makeSingleInstance(callback)`
* `callback` Function

View file

@ -22,6 +22,9 @@ Object.assign(app, {
commandLine: {
appendSwitch: bindings.appendSwitch,
appendArgument: bindings.appendArgument
},
allowNTLMCredentialsForAllDomains () {
this.commandLine.appendSwitch('auth-server-whitelist', '*')
}
})