[JS] How to workaround same origin problem
- by Ricky
Hi guys:
The following JS will fail if the URL in mainFrame from a.abc.com to b.abc.com.
top.frames["mainFrame"].location.href = "/Users/xuenn.aspx?backUrl=" + top.frames["mainFrame"].location.href.split("?")[0];
This is the error message:
Permission denied for http://a.abc.com to get property Location.href from http://b.abc.com.
Anybody knows…