Fixed a bug where the teacher client refused to run under HTTPS

Fixed a bug where the teacher client would not work when accessed over https.