Use the launchOptions to set the browser launch configurations and pass the object to the browser instance.
var launchOptions = new BrowserTypeLaunchOptions
{
Headless = false,
Args = new[] { "--disable-web-security" }
};
browser = await browserType.LaunchAsync(launchOptions);
from playwright.config.ts use the below config,