How does cross domain file (receiver) work?
Posted
by
seatoskyhk
on Stack Overflow
See other posts from Stack Overflow
or by seatoskyhk
Published on 2011-01-05T23:48:28Z
Indexed on
2011/01/05
23:54 UTC
Read the original article
Hit count: 165
So, how does it work? How come having a receiver.html can allow cross domain communication? I... just... don't understand.
For example, (using Heyzap as example)
<script type="text/javascript" src="http://tools.heyzap.com/external/tools/v4.js"></script> <script type="text/javascript"> HeyzapTools.load({
game_key: "your-game-key-here",
hz_receiver_url: "http://example.com/hz_receiver.html" });
</script>
and the hz_receiver.html has this content:
<html>
<body>
<script src="/external/tools/hz_receiver.js" type="text/javascript"></script>
</body>
</html>
so, why it will allow cross domain?
© Stack Overflow or respective owner