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
  • 7,898
  • 17
  • 68
  • 131

1 Answers1

0

It is possible using JSONP or CORS.

You can read a comparison of the two here.

Community
  • 1
  • 1
Tim
  • 6,111
  • 2
  • 37
  • 48