-1

On one of my websites (let's call it site A), I have a posts tab and a blog tab. The blog tab uses iframe to frame in my blog from another site (Site B), and I want to be able to link to specific blog posts within this site on my posts tab (So if I were to post a blog about X on Site B, I could then create a post on Site A about this blogpost and link to this blog within the iframe still on Site A). I have tried the following code I found from an earlier thread:

<iframe src="iframe.htm" name="iframe_a"></iframe>

<a href="http://www.urltowebsite.com" target="iframe_a">My link</a>

However, I am unable to execute this due to cross site scripting restrictions. Is there any way around this restriction? Or is there different code I could use to execute this without cross site scripting?

Thanks!

EllieT
  • 1
  • Does this answer your question? [How Can I Bypass the X-Frame-Options: SAMEORIGIN HTTP Header?](https://stackoverflow.com/questions/2783095/how-can-i-bypass-the-x-frame-options-sameorigin-http-header) – asportnoy May 31 '22 at 20:26

0 Answers0