Skip to content

[🚀 Feature]: Add an option to remove "remote-allow-origins" from ChromeOptions #11949

@gtach2o

Description

@gtach2o

Feature and motivation

After this happend

    // Allowing any origin "*" might sound risky but an attacker would need to know
    // the port used to start DevTools to establish a connection. Given these sessions
    // are relatively short-lived, the risk is reduced. Also, this will be removed when
    // we only support Java 11 and above.
    addArguments("--remote-allow-origins=*");

our tests stoped working. We can't update to Selenium 4.8.2 or higher
We awlays use latest chrome driver, current is 112.0.5615.49
JDK native http client
Java 20
and everything was working fine until 4.8.2 released
{args=[--remote-allow-origins=*, is breaking our automation.
How to remove it from default chrome options? We don't need it.

Usage example

removeArguments("--remote-allow-origins=*");

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-enhancementSomething could be betterJ-awaiting answerQuestion asked of user; a reply moves it to triage again

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions