fix front end host error

change 127.0.0.1 to location.host