Description
I have tried the below method to start app in a web security disabled browser to avoid CORS issue. (Added in .env
file)
BROWSER=google chrome
BROWSER_ARGS=--user-data-dir=/tmp/temporary-chrome-profile-dir --disable-web-security --disable-site-isolation-trials --ignore-certificate-errors --disable-features=SameSiteByDefaultCookies,CookiesWithoutSameSiteMustBeSecure --unsafely-treat-insecure-origin-as-secure=http://localhost:3000
When we do this in terminal (open chrome command with above args) - It is launching the browser with given browser args. But, BROWSER_ARGS is getting ignored if we provide inside .env file. It is launching in the normal chrome browser (wit security enabled)
Please update me if you need further details from my end.