by generichuman · 7y ago · 0 comments
I hadn't considered the security part yet, to be honest. I'm open to suggestions for methods to make sure the application is secure.
This prevents malware from accessing your app while avoiding leaking authentication cookies to other http services on localhost.
Security wise, that is.
It at least used to be the case that this could be gotten around with flash, though that may be fixed, and many people won't run strange flash anymore anyway.
Another way, if you're using WebSockets, you can establish that the latency is unrealistically low to be a switched physical network, with pings (with cookies).