bring back app.allowNTLMCredentialsForAllDomains
This commit is contained in:
parent
3db2daf790
commit
62cad610e0
2 changed files with 6 additions and 3 deletions
|
@ -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
|
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.
|
icon file consists of one icon, this value is 0.
|
||||||
|
|
||||||
### `app.allowNTLMCredentialsForAllDomains(allow)`
|
### `app.allowNTLMCredentialsForAllDomains()`
|
||||||
|
|
||||||
* `allow` Boolean
|
|
||||||
|
|
||||||
Dynamically sets whether to always send credentials for HTTP NTLM or Negotiate
|
Dynamically sets whether to always send credentials for HTTP NTLM or Negotiate
|
||||||
authentication - normally, Electron will only send NTLM/Kerberos credentials for
|
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,
|
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.
|
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)`
|
### `app.makeSingleInstance(callback)`
|
||||||
|
|
||||||
* `callback` Function
|
* `callback` Function
|
||||||
|
|
|
@ -22,6 +22,9 @@ Object.assign(app, {
|
||||||
commandLine: {
|
commandLine: {
|
||||||
appendSwitch: bindings.appendSwitch,
|
appendSwitch: bindings.appendSwitch,
|
||||||
appendArgument: bindings.appendArgument
|
appendArgument: bindings.appendArgument
|
||||||
|
},
|
||||||
|
allowNTLMCredentialsForAllDomains () {
|
||||||
|
this.commandLine.appendSwitch('auth-server-whitelist', '*')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue