javascript - How to return data directly to a client who queried via an intermediate server -
i'm trying figure out way of taking shortcut in following process:
- client side javascript sends xmlhttprequest a.com/core.php
- core.php requests data b.com/api.php via file_get_contents()
- data sent b.com a.com
- data sent a.com client
the process works flawlessly, seems me there optimization potential in way data returned client - passing data via a.com serves no practical purpose.
is there way make b.com send data directly client? , if so, information has passed a.com b.com?
Comments
Post a Comment