Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sundar22in
· 14y ago · 0 comments
You cannot access any arbitary website from Javascript.
http://en.wikipedia.org/wiki/Same_origin_policy
Comments
[–]
sravfeyn
14y 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.
[–]
MatthewPhillips
14y ago
http://www.w3.org/TR/cors/