Posted by Hywel Jenkins on 04/17/06 14:46
hemant.singh@gmail.com wrote:
> Hello all,
> I am developing a solution(JS/Ajax+ruby) which will be hosted on say
> domain x.com
>
> now my client can be comg from any domain, all they need to do is
>
> <!-- Magic script starts -->
> <div id="mymagic">
> <script src="http://x.com/javascripts/client.js" />
> <script type='text/javascript'>
> showThemReality();
> </script>
> </div>
> <!-- Magic script ends -->
>
> Now the client.js loaded from x.com is making a ajax connection to
> x.com, is this a issue? If not than how to access x.com server scripts
> from client.js? I am try'g and it is giving me permission denied
> exception.
You've come up against the cross-domain scripting browser security.
This has been around for a long time. I suspect googling for "ajax
cross domain security" will yield something helpful.
--
Hywel
[Back to original message]
|