cronos-mainnet: Fix ws-origins rejection of Origin-header WebSocket connections #41

Merged
sebastian merged 1 commits from issue-1391 into main 2026-07-14 12:47:58 +00:00
Collaborator

Summary

Fixed cronos-mainnet ws-origins="" rejection of WebSocket connections with Origin headers (sent by dshackle), causing 403 Forbidden and head-subscription stalls.

Changes

rpc/cronos/scripts/init.sh: Added JSON_RPC_WS_ORIGINS env var (default *) with sed persistence under [json-rpc] on every start, matching the existing address / ws-address pattern. Transforms ws-origins = ""ws-origins = "*".

Verification

  • Sed pattern verified: ws-origins = ""ws-origins = "*" (matching [json-rpc] section)
  • Node is healthy at tip; this fixes head-subscription monitoring false-positive (DRPC unavailable → 403 WS errors)
  • Verify WS handshake with Origin header succeeds after deploy

vibe-node issue #1391 (compose generation + context.yml source changes)

Asset commit: 526f125d5a25

## Summary Fixed cronos-mainnet `ws-origins=""` rejection of WebSocket connections with Origin headers (sent by dshackle), causing 403 Forbidden and head-subscription stalls. ## Changes **`rpc/cronos/scripts/init.sh`**: Added `JSON_RPC_WS_ORIGINS` env var (default `*`) with sed persistence under `[json-rpc]` on every start, matching the existing `address` / `ws-address` pattern. Transforms `ws-origins = ""` → `ws-origins = "*"`. ## Verification - Sed pattern verified: `ws-origins = ""` → `ws-origins = "*"` (matching [json-rpc] section) - Node is healthy at tip; this fixes head-subscription monitoring false-positive (DRPC unavailable → 403 WS errors) - Verify WS handshake with Origin header succeeds after deploy ## Related vibe-node issue #1391 (compose generation + context.yml source changes) Asset commit: `526f125d5a25`
claude added 1 commit 2026-07-13 17:37:35 +00:00
Empty ws-origins rejects WebSocket connections with an Origin header
(dshackle head-subscription monitoring). Sed under [json-rpc] like
address/ws-address so restarts keep the value.
sebastian merged commit 526f125d5a into main 2026-07-14 12:47:58 +00:00
sebastian deleted branch issue-1391 2026-07-14 12:47:59 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StakeSquid/ethereum-rpc-docker#41