Is this something restricted by cross-origin policy or not?
Asked
Active
Viewed 104 times
2 Answers
4
No. The page is the origin, not the script.
The page is on www.foo.com
. The script is loaded from www.example.com
. XHR requests can be made to www.foo.com
but not www.example.com
.

Quentin
- 914,110
- 126
- 1,211
- 1,335
-
2Your `foo.com` and `example.com` are in the opposite order to the question a little confusing ;P – Sphvn Aug 02 '12 at 08:54
-
@Marrowmaw: yep, that confused me as well :-) – zerkms Aug 02 '12 at 08:54