Https fix

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