a53c8f03a61f311d7ed84183784602df17f3d353
Hypothesis test for the intermittent "Fetch API cannot load … SubscribeEvents due to access control checks" error visible to Safari users on https://www.galaxy.lan. Server-side CORS headers are present and correct (verified live); the browser reports 0 bytes received and the gateway sees the stream context canceled after ~2 s. galaxy-caddy's reverse_proxy log shows the same window: `error: reading: context canceled` with sub-millisecond upstream duration on every retry. The EventStream client treats the transport-level abort as a transient error and reconnects with backoff, producing the tight open/close pattern observed in `push_fanout.go` logs. `flush_interval -1` disables Caddy's default response buffering on the streaming path so the gateway's initial `gateway.service_time` event reaches the browser without waiting for a buffer flush. If Safari was canceling the stream because no bytes landed within its fetch-streaming idle window, this should stop the reconnect loop. To be verified on dev-deploy via workflow_dispatch on this branch, no merge to `development` yet. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
Go
52%
TypeScript
38.1%
Svelte
8.8%
Go Template
0.3%
Makefile
0.3%
Other
0.3%