@@ -34,8 +34,8 @@ class CefHelperApp : public CefApp,
3434 std::fstream fStream ;
3535 std::string fName = util::GetTempFileName (" scheme" , true );
3636 char schemeName[512 ] = " " ;
37- char cIsStandard, cIsLocal, cIsDisplayIsolated, cIsSecure, cIsCorsEnabled;
38- bool isStandard, isLocal, isDisplayIsolated, isSecure, isCorsEnabled;
37+ char cIsStandard, cIsLocal, cIsDisplayIsolated, cIsSecure, cIsCorsEnabled, cIsCspBypassing ;
38+ bool isStandard, isLocal, isDisplayIsolated, isSecure, isCorsEnabled, isCspBypassing ;
3939
4040 fStream .open (fName .c_str (), std::fstream::in);
4141 while (fStream .is_open () && !fStream .eof ()) {
@@ -44,15 +44,16 @@ class CefHelperApp : public CefApp,
4444 break ;
4545
4646 fStream .get (cIsStandard).get (cIsLocal).get (cIsDisplayIsolated).
47- get (cIsSecure).get (cIsCorsEnabled);
47+ get (cIsSecure).get (cIsCorsEnabled). get (cIsCspBypassing) ;
4848 isStandard = (cIsStandard == ' 1' );
4949 isLocal = (cIsLocal == ' 1' );
5050 isDisplayIsolated = (cIsDisplayIsolated == ' 1' );
5151 isSecure = (cIsSecure == ' 1' );
5252 isCorsEnabled = (cIsCorsEnabled == ' 1' );
53+ isCspBypassing = (cIsCspBypassing == ' 1' );
5354
5455 registrar->AddCustomScheme (schemeName, isStandard, isLocal,
55- isDisplayIsolated, isSecure, isCorsEnabled);
56+ isDisplayIsolated, isSecure, isCorsEnabled, isCspBypassing );
5657 }
5758 fStream .close ();
5859 }
0 commit comments