You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] CSP connect-src builds a malformed URL for non-TLS relays (':' instead of 'http:') #700
The else branch is clearly meant to map ws: → http:, but it assigns the string ':', which is not a valid scheme. Assigning an invalid scheme via the WHATWG URL API is silently ignored, so webRelayUrl keeps the ws:/wss: protocol, and the connect-src directive ends up with a ws://… entry instead of the intended http://… origin.
For relays served over plain ws:// (local/dev, Tor, or reverse-proxied setups), the CSP connect-src for the invoices/terms pages is therefore wrong.
Activity
cameri commentedon Aug 16, 2026
Thank you @Priyanshubhartistm !