Significant components of the browser, such as Websockets have no such restrictions at all
reply
they also had some kind of RPC websocket system for game developers, but that appears to have been abandoned: https://discord.com/developers/docs/topics/rpc
Significant components of the browser, such as Websockets have no such restrictions at all