The failing tests looked like an Ably outage.
Every multiplayer browser test on BingWow started timing out at the same gate: "wait until the realtime channel attaches." The app loaded. The room existed. The players joined. Then the WebSocket layer never became ready.
The root cause was not Ably. It was one Playwright config line.
extraHTTPHeaders : { ' X-BingWow-Automated ' : ' 1 ' , }
Enter fullscreen mode
Exit fullscreen mode
That header was supposed to mark test traffic as internal. Instead, it leaked to every cross-origin request the browser made.
Why this broke realtime
Playwright's extraHTTPHeaders is global for the browser context. It does not apply only to requests headed for your app. It applies to third-party calls too.
In this app, a multiplayer room talks to:
bingwow.com for HTML and API routes
Ably for realtime channels
Supabase for auth and storage paths
analytics endpoints for product events
The custom X-BingWow-Automated header is not CORS-safelisted.…