Skip to content

Commit 49e543f

Browse files
committed
Add AbstractCefSettings.EnableNetSecurityExpiration
Resolves #2615
1 parent 821a44f commit 49e543f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CefSharp.Core/AbstractCefSettings.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@ namespace CefSharp
9696
void set(bool value) { _cefSettings->command_line_args_disabled = value; }
9797
}
9898

99+
/// <summary>
100+
/// Set to true to enable date-based expiration of built in network security information (i.e. certificate transparency logs,
101+
/// HSTS preloading and pinning information). Enabling this option improves network security but may cause HTTPS load failures when
102+
/// using CEF binaries built more than 10 weeks in the past. See https://www.certificate-transparency.org/ and
103+
/// https://www.chromium.org/hsts for details. Can be set globally using the CefSettings.EnableNetSecurityExpiration value.
104+
/// </summary>
105+
property bool EnableNetSecurityExpiration
106+
{
107+
bool get() { return _cefSettings->enable_net_security_expiration == 1; }
108+
void set(bool value) { _cefSettings->enable_net_security_expiration = value; }
109+
}
110+
99111
/// <summary>
100112
/// Set to true to control browser process main (UI) thread message pump
101113
/// scheduling via the IBrowserProcessHandler.OnScheduleMessagePumpWork

0 commit comments

Comments
 (0)