0

Just wonder is there a way for visitor

when he visits 'a.com' and communicates with the site using XMLHttpRequest, there are some javascript/html5 code hosted on a.com make the visitor can access the content of another site b.com

I memorise that for the security reason this is forbid.

Just make sure if it is possible or not

arachide
  • 8,006
  • 18
  • 71
  • 134

1 Answers1

0

It is possible using JSONP or CORS.

You can read a comparison of the two here.

Community
  • 1
  • 1
Tim
  • 6,281
  • 3
  • 39
  • 49