fix cross-domain issue.
changed hard code to configure
chat client first commit