You've already forked CEF4Delphi
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:
@@ -194,6 +194,7 @@ type
|
|||||||
FNetLogEnabled : boolean;
|
FNetLogEnabled : boolean;
|
||||||
FNetLogFile : ustring;
|
FNetLogFile : ustring;
|
||||||
FNetLogCaptureMode : TCefNetLogCaptureMode;
|
FNetLogCaptureMode : TCefNetLogCaptureMode;
|
||||||
|
FRemoteAllowOrigins : ustring;
|
||||||
|
|
||||||
|
|
||||||
// Fields used during the CEF initialization
|
// Fields used during the CEF initialization
|
||||||
@@ -523,6 +524,7 @@ type
|
|||||||
property NetLogEnabled : boolean read FNetLogEnabled write FNetLogEnabled; // --log-net-log
|
property NetLogEnabled : boolean read FNetLogEnabled write FNetLogEnabled; // --log-net-log
|
||||||
property NetLogFile : ustring read FNetLogFile write FNetLogFile; // --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 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
|
// Properties used during the CEF initialization
|
||||||
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
|
property WindowsSandboxInfo : Pointer read FWindowsSandboxInfo write FWindowsSandboxInfo;
|
||||||
@@ -779,6 +781,7 @@ begin
|
|||||||
FNetLogEnabled := False;
|
FNetLogEnabled := False;
|
||||||
FNetLogFile := '';
|
FNetLogFile := '';
|
||||||
FNetLogCaptureMode := nlcmDefault;
|
FNetLogCaptureMode := nlcmDefault;
|
||||||
|
FRemoteAllowOrigins := '';
|
||||||
|
|
||||||
// Fields used during the CEF initialization
|
// Fields used during the CEF initialization
|
||||||
FWindowsSandboxInfo := nil;
|
FWindowsSandboxInfo := nil;
|
||||||
@@ -2134,6 +2137,9 @@ begin
|
|||||||
if (length(FTreatInsecureOriginAsSecure) > 0) then
|
if (length(FTreatInsecureOriginAsSecure) > 0) then
|
||||||
ReplaceSwitch(aKeys, aValues, '--unsafely-treat-insecure-origin-as-secure', FTreatInsecureOriginAsSecure);
|
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
|
if FNetLogEnabled then
|
||||||
begin
|
begin
|
||||||
ReplaceSwitch(aKeys, aValues, '--log-net-log', FNetLogFile);
|
ReplaceSwitch(aKeys, aValues, '--log-net-log', FNetLogFile);
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 472,
|
"InternalVersion" : 473,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "111.2.2"
|
"Version" : "111.2.2"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user