Skip to content

Commit

Permalink
[java] allow origins for geckodriver of localhost and 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 27, 2022
1 parent af12e43 commit 96c4ecd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/src/org/openqa/selenium/firefox/GeckoDriverService.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ protected List<String> createArgs() {
int wsPort = PortProber.findFreePort();
args.add(String.format("--port=%d", getPort()));
args.add(String.format("--websocket-port=%d", wsPort));
args.add(String.format("--allow-origins=http://localhost:%d", wsPort));
args.add("--allow-origins");
args.add(String.format("http://127.0.0.1:%d", wsPort));
args.add(String.format("http://localhost:%d", wsPort));
if (firefoxBinary != null) {
args.add("-b");
args.add(firefoxBinary.getPath());
Expand Down

0 comments on commit 96c4ecd

Please sign in to comment.