3 ms·
Unix domain sockets support peer authentication, which is way better than anything network sockets do, and the threat that you need HTTPS to protect against doe
by josephcsible 3y ago
Unix domain sockets support peer authentication, which is way better than anything network sockets do, and the threat that you need HTTPS to protect against doesn't exist with them.
- andix 3y agoYeah, that's why it's better than having a HTTP server listening on localhost. And why listening on localhost is often not a good idea. But UNIX sockets are not available on all platforms, which defeats a bit the general idea of a browser. Windows got UNIX socket support a while ago, but I don't know how well it works.
- josephcsible 3y agoWhat would be wrong with browsers only supporting UNIX domain sockets on platforms where they exist?