1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-08-14 21:42:50 +02:00

Added GlobalCEFApp.RemoteAllowOrigins

This commit is contained in:
salvadordf
2023-03-12 20:14:43 +01:00
parent 4150a65980
commit a8f2cd9bbf
2 changed files with 7 additions and 1 deletions

View File

@@ -194,6 +194,7 @@ type
FNetLogEnabled : boolean;
FNetLogFile : ustring;
FNetLogCaptureMode : TCefNetLogCaptureMode;
FRemoteAllowOrigins : ustring;
// Fields used during the CEF initialization
@@ -523,6 +524,7 @@ type
property NetLogEnabled : boolean read FNetLogEnabled write FNetLogEnabled; // --log-net-log
property NetLogFile : ustring read FNetLogFile write FNetLogFile; // --log-net-log
property NetLogCaptureMode : TCefNetLogCaptureMode read FNetLogCaptureMode write FNetLogCaptureMode; // --net-log-capture-mode
property RemoteAllowOrigins : ustring read FRemoteAllowOrigins write FRemoteAllowOrigins; // --remote-allow-origins
// Properties used during the CEF initialization
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
@@ -779,6 +781,7 @@ begin
FNetLogEnabled := False;
FNetLogFile := '';
FNetLogCaptureMode := nlcmDefault;
FRemoteAllowOrigins := '';
// Fields used during the CEF initialization
FWindowsSandboxInfo := nil;
@@ -2134,6 +2137,9 @@ begin
if (length(FTreatInsecureOriginAsSecure) > 0) then
ReplaceSwitch(aKeys, aValues, '--unsafely-treat-insecure-origin-as-secure', FTreatInsecureOriginAsSecure);
if (length(FRemoteAllowOrigins) > 0) then
ReplaceSwitch(aKeys, aValues, '--remote-allow-origins', FRemoteAllowOrigins);
if FNetLogEnabled then
begin
ReplaceSwitch(aKeys, aValues, '--log-net-log', FNetLogFile);

View File

@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 472,
"InternalVersion" : 473,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "111.2.2"
}