Refer to https://support.smartbear.com/testcomplete/docs/app-testing/web/common-tasks/frames.html for the security implication, you can ignore the browser warning message and when you navigate to a different page it will disappear.
function RunChromeSecurityDisabled()
{
// Get user profile path, and build command line argument
USERPROFILE = aqEnvironment.GetEnvironmentVariable("USERPROFILE");
CommandLine = "--disable-web-security --user-data-dir=\"" + USERPROFILE + "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\" --disable-site-isolation-trials --disable-hang-monitor --disable-renderer-accessibility";
Log.Message("Chrome CommandLine = " + CommandLine);
// Run Chrome with command line
Browsers.Item("chrome").RunOptions = CommandLine;
Browsers.Item("chrome").Run();
}
💬 If a response helped you out, don’t forget to Like it! And if it answered your question, mark it as the solution so others can benefit too.