IFrame: This content cannot be displayed in a frame

后端 未结 3 2027
天命终不由人
天命终不由人 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:20

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

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

提交回复
热议问题