I have an iFrame on my site and my goal is to use JavaScript to make it so that when the iframe goes to one website it automatically redirects to another site. I do not own any of the sites this iFrame would display so I am wondering if XSS could be the problem. Anyways I want to thank anybody in advance for helping me with this problem.
Asked
Active
Viewed 20 times
1
-
To clarify, you're have an ` – Jonathan Lam Nov 13 '15 at 21:00
-
@Jonathan yes. That is. – Nov 14 '15 at 02:14
1 Answers
0
If you could do it, then XSS might well be a problem for the site you are framing.
Without a security flaw on the sites you are framing or their cooperation, there is no way to do what you want. The Same Origin Policy prevents access to the content of other sites.

Quentin
- 914,110
- 126
- 1,211
- 1,335