Closed throrin19 closed 10 years ago
https://github.com/jpillora/xdomain#using-multiple-masters-and-slaves
You should be using the second of the two snippets:
<script src="//rawgit.com/jpillora/xdomain/gh-pages/dist/0.6/xdomain.min.js"></script>
<script>
xdomain.masters({
'http://abc.example.com': '/api/*',
//list more masters here...
});
</script>
Thanks. The key is the url of the accepted masters but the value is for ?
OK :). Sorry ^^. So i can create this rules :
xdomain.masters({
"http://a.example.com": "*",
"http://b.example.com": "*"
});
Correct
On Mon, Jul 21, 2014 at 11:04 PM, Benjamin Besse notifications@github.com wrote:
OK :). Sorry ^^. So i can create this rules :
xdomain.masters({ "http://a.example.com": "", "http://b.example.com": "" });
— Reply to this email directly or view it on GitHub https://github.com/jpillora/xdomain/issues/100#issuecomment-49602408.
I have the same error on IE9
client side :
<!--[if lte IE 10]>
<script type="text/javascript" src="js/libs/vendors/xdomain/dist/0.6/xdomain.js" slave="http://dapi.goomeo.com/v1.2/proxy"></script>
<script type="text/javascript" src="js/libs/vendors/xdomain/dist/0.6/xdomain.js" slave="http://dapi.goomeo.com/v1.2/proxy"></script>
<![endif]-->
server side :
<script src="js/libs/vendors/xdomain.js"></script>
<script type="text/javascript">
xdomain.masters({
'http://lclient.goomeo.com': '*',
'http://*.myeventsportal.com': '*',
'https://*.goomeo.com': '*',
'https://*.myeventsportal.com': '*'
//list more masters here...
});
</script>
That's strange...
On Mon, Jul 21, 2014 at 11:18 PM, Benjamin Besse notifications@github.com wrote:
I have the same error on IE9
— Reply to this email directly or view it on GitHub https://github.com/jpillora/xdomain/issues/100#issuecomment-49603724.
I have the error with one master. But i have not this error on same top domain (*.goomeo.com for my case) And the demo still works on my ie9
I try with :
<script type="text/javascript">
xdomain.slaves({
'http://dev.myeventsportal.com': '/v1.2/proxy',
});
</script>
But i have the error 'xdomain is undefined'. Same error with xdomain.debug = true.
Ok, i find the problem. On this project, i include requireJS before xdomain. With this, xdoman is init ON AMD. I change javascript including order and it works. Thanks
Ah I see, I'll mention that in the docs
On Tuesday, July 22, 2014, Benjamin Besse notifications@github.com wrote:
Ok, i find the problem. On this project, i include requireJS before xdomain. With this, xdoman is init ON AMD. I change javascript including order and it works. Thanks
— Reply to this email directly or view it on GitHub https://github.com/jpillora/xdomain/issues/100#issuecomment-49710455.
Hi, I come to you for another problem. Now I have two different areas that need to communicate with each other (
aaa.foo.com
withbbb.bar.com
) And I get this error on IE console :This is my config on client side :
And this is my config on server side