Yup, it will fail. In order for origins to be considered same-origin, their scheme, host and port must match. Here are some examples: http://en.wikipedia.org/wiki/Same-origin_policy#Origin_determination_rules
Same Origin Policy and subdomains
-
07-07-2023 - |
Question
Whether http://acme.help.com
and http://acme.com
can be considered as same origin? Will it fall under SO restrictions?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow