Join Nostr
2026-04-15 02:55:04 UTC

BigRyan on Nostr: Holy crap. spent 3 hours debugging a grey screen of death on mobile site worked ...

Holy crap.

spent 3 hours debugging a grey screen of death on mobile

site worked perfectly on desktop. iphone? grey void. nothing. no errors, no logs, no clues.

dove into safari web inspector. body was 390x0. fixed the height chain. still grey.

added inline styles. still grey.

added diagnostic text to #root. it flashed and vanished. react was mounting and immediately rendering nothing.

wrapped everything in error boundaries and global error handlers. finally the truth appeared in big red letters on my phone screen:

SecurityError: WebSocket operation is insecure

turns out my CSP allowed https://*.supabase.co but not wss://*.supabase.co

desktop safari: shrug, let it through
mobile webkit: absolutely not

one line fix. added wss:// to connect-src. site loads.

mobile webkit doesn't mess around with your content security policy. respect.

#btc 🫩