5 ms·
You cannot access any arbitary website from Javascript. http://en.wikipedia.org/wiki/Same_origin_policy http://en.wikipedia.org/wiki/Same_origin_policy
by sundar22in 15y ago
You cannot access any arbitary website from Javascript.
http://en.wikipedia.org/wiki/Same_origin_policy http://en.wikipedia.org/wiki/Same_origin_policy
- sravfeyn 15y agoWhile there is the same origin policy, there is mechanism to share some resources as Matthew pointed out. Even if you host a site on domain ex1, you can still access resource at google maps through API.
- MatthewPhillips 15y agohttp://www.w3.org/TR/cors/ http://www.w3.org/TR/cors/