Y
Hacker News
new
|
ask
|
show
|
jobs
by
sundar22in
5221 days ago
You cannot access any arbitary website from Javascript.
http://en.wikipedia.org/wiki/Same_origin_policy
2 comments
sravfeyn
5221 days ago
While 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.
link
MatthewPhillips
5221 days ago
http://www.w3.org/TR/cors/
link