Host header is host:port from the Origin header (fixed origin issues
with IPython); also removed unnecessary protocol param