I like everything except we absolute the host in credential and parse the raw host here. There seems to be a mismatch somewhere.