title: Secure connection between client and server on different domains
body: <p>I am doing a module in which i need to handover the pre designed page to a client and when client uses this page it can communicate between my server and client page.
  The problem is if I want to access server from other client page I need to give username,pass,host which must be written in the pre designed client page.
  How can I make it hide from the client to get the info and securely operate the task.
  Is there any approach or Am I wrong somewhere.
  I am doing this in php and javascript
  Thanks in advance</p>