jpillora / xdomain

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

Can x-domain support multiple slaves? #123

Closed beegeok closed 9 years ago

beegeok commented 9 years ago

I would like to call to slave URL with multiple domains, www.abc.com.*. How can I achieve this by using x-domain?

<--script src="http://www.xyz.com/xdomain.min.js" slave="http://www.abc.com.*/proxy.html">

jpillora commented 9 years ago

It can, see the API section of the docs for xdomain.slaves()

On Friday, November 7, 2014, Bee Geok notifications@github.com wrote:

I would like to call to slave URL with multiple domains, www.abc.com.*. How can I achieve this by using x-domain?

— Reply to this email directly or view it on GitHub https://github.com/jpillora/xdomain/issues/123.

jpillora commented 9 years ago

https://github.com/jpillora/xdomain#using-multiple-masters-and-slaves