jpillora / xdomain

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

Master is Blocked by Slave #167

Closed darrindickey closed 9 years ago

darrindickey commented 9 years ago

I looked through other issues like this, but haven't been able to solve my issue yet.

On master, I have:

<script src="xdomain.min.js" debug="true"></script>
<script>
   xdomain.slaves({'https://www.slavedomain.com:9001': ‘/proxy.html'})
</script>

For slave, I have:

<!DOCTYPE HTML>
<script src=“https://www.masterdomain.com/xdomain.min.js” master="https://www.masterdomain.com”></script>

But I'm getting:

xdomain (https://www.slavedomain.com:9001): blocked request from: 'https://www.masterdomain.com'

There does seem to be a one-way connection, but the other side is blocking it.

darrindickey commented 9 years ago

Never mind. Got it working. Was trying to access from localhost instead of the domain listed in the proxy.