iam not violating the same origin policy that which the browers
follow.
Scenario1 ) Script is loading from mydomain.com,script is
residing on the same mydomain.com
in this case everything is working fine.
Scnario2) Script is loading from mydomain.com, script is residing on
other domain say xyza.com
Even though script is residing on xyza.com
the script downloaded form mydomain.com is making calls
Ajax calls (XHR request/response) to only mydomain.com
in the above case it is still not violating th same
ORgin policy.
in the second scenario also it should work
correctly.but it is not working ...............
i could not able to figure it out the mistake that iam
doing.
On Sep 17, 12:23 am, Diodeus <diod...@gmail.com> wrote:
> Assuming you are attempting to make an Ajax call to a server that is
> not in your web page's domain, it is a deliberate security restriction
> in the browser designed to prevent cross-site scripting (XSS) attacks.
>
> On Sep 16, 1:34 pm, Rama <ramaakrish...@gmail.com> wrote:
>
> > hi,
>
> > i have developed a widget/badge in javasript. (using prototypejs)
>
> > It is working well on my own site. but when placed on other
> > domains AJAX(XHR) requests are not working porperly.
>
> > Can anyone please guide us on why the ajax(XHR) calls/requests are
> > not working when placed on other doman.
>
> > Regards
> > rama