Skip to content

fix(stepup): add --remote-allow-origins=* to Behat chrome container - #97

Closed
kayjoosten wants to merge 1 commit into
mainfrom
fix/behat-chrome-remote-allow-origins
Closed

fix(stepup): add --remote-allow-origins=* to Behat chrome container#97
kayjoosten wants to merge 1 commit into
mainfrom
fix/behat-chrome-remote-allow-origins

Conversation

@kayjoosten

Copy link
Copy Markdown
Contributor

Problem

Every @functional Behat scenario across the Stepup repos (Gateway, RA, SelfService, …) started failing at the first browser step:

Connection timeout: Empty read; connection dead? (WebSocket\TimeoutException)

Cause

The chrome service tracks lscr.io/linuxserver/chromium:latest. A newer Chromium build tightened the DevTools (CDP) WebSocket origin check — it now rejects connections with a missing/null Origin header unless the browser is started with --remote-allow-origins. The dmore/chrome-mink-driver WebSocket client sends no Origin header, so its CDP connection is now refused.

Driver versions are unchanged (dmore/chrome-mink-driver 2.9.3, phrity/websocket 1.7.3) — only the browser image moved.

Fix

Add --remote-allow-origins=* to CHROME_CLI. Safe for a disposable CI/dev browser and keeps the container on the latest image.

Chrome/Chromium hardened the DevTools (CDP) WebSocket origin check: it now
rejects connections with a missing/null Origin header unless started with
--remote-allow-origins. A newer lscr.io/linuxserver/chromium:latest build
crossed that change, so every @functional Behat scenario in the Stepup
repos began failing at the first browser step with:

  Connection timeout: Empty read; connection dead? (WebSocket\TimeoutException)

Adding the flag restores the CDP connection for dmore/chrome-mink-driver
while staying on the latest image.
@kayjoosten kayjoosten closed this Sep 4, 2026
@kayjoosten
kayjoosten deleted the fix/behat-chrome-remote-allow-origins branch September 4, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant