Skip to content

BROWSER_ARGS in .env file is not working in Chrome 90 version (MAC OS) #11917

Open
ayishagisel/create-react-app
#119
@Karthick-FK

Description

@Karthick-FK

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions