IFrame: This content cannot be displayed in a frame

后端 未结 3 2014
天命终不由人
天命终不由人 2020-12-03 13:36

I have two internal sites. I\'m trying to show one\'s content in the iframe of the other site. However I\'m getting this message: \"This content cannot be displayed in a f

相关标签:
3条回答
  • 2020-12-03 14:19

    Use target="_top" attribute in anchor tag that will really work.

    0 讨论(0)
  • 2020-12-03 14:20

    The X-Frame-Options is defined in the Http Header and not in the <head> section of the page you want to use in the iframe.

    Accepted values are: DENY, SAMEORIGIN and ALLOW-FROM "url"

    0 讨论(0)
  • 2020-12-03 14:28

    use <meta http-equiv="X-Frame-Options" content="allow"> in the one to show in the iframe to allow it.

    0 讨论(0)
提交回复
热议问题