jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 270 forks source link

Adding multiple slave format #86

Closed ankur20us closed 10 years ago

ankur20us commented 10 years ago

Hi, I am able to attach your script, in case of this


     <script src="js/xdomain.js" data-slave="http://10.7.22.28:8080/group/proxy.html"> </script>

This works, but I want to add more slaves, like using your API as:

    <script>
    xdomain.debug=true;
    xdomain.slaves({
      "http://10.7.22.28:8080/group": "proxy.html"
    });
    <script>

This does not works for single same slave as well, where I am doing wrong?

jpillora commented 10 years ago

https://github.com/jpillora/xdomain#xdomainslavesslaves

"http://10.7.22.28:8080": "/group/proxy.html"

On Fri, Jun 13, 2014 at 7:23 PM, Ankur notifications@github.com wrote:

Hi, I am able to attach your script, in case of this

This works, but I want to add more slaves, like using your API as:

Githubissues.
  • Githubissues is a development platform for aggregating issues.