Don't allow a MITM proxy to strip security from the connection

cc @seancribbs