Skip to content

"Google Chrome cannot read and write to its data directory" when flag "--user-data-dir" used #23

Description

@olehmelnyk

I want to start a new browser window with --disable-web-security --user-data-dir="C:/Chrome dev session" flags, so I can work with CORS - when I write those flags in shortcut path or run it from the command line everything works fine, new browser window opens with CORS enabled and browser is started as a 'fresh install' due to the --user-data-dir="C:/Chrome dev session" flag

But when I run it from the webpack, I got a Windows error dialog:

---------------------------
Failed To Create Data Directory
---------------------------
Google Chrome cannot read and write to its data directory:

"C:/Chrome dev session"

here's how it set in webpack.config

plugins: [
    new browserPlugin({
        openOptions: {
            app: ['chrome', '--disable-web-security', '--user-data-dir="C:/Chrome dev session"']
        }
    })
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions