Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

后端 未结 6 793
既然无缘
既然无缘 2020-12-08 00:31

Screenshot of t

6条回答
  •  独厮守ぢ
    2020-12-08 00:48

    I think You are trying to use the normal URL of video Like this :

    Copying Direct URL from YouTube

    That doesn't let you display the content on other domains.To Tackle this up , You should use the Copy Embed Code feature provided by the YouTube itself .Like this :

    Copy Embed Code ( YouTube )

    That would free you up from any issues .

    For the above Scenario :

    • Go to Youtube Video

    • Copy Embed Code

    • Paste that into your Code ( Make sure you Escape all the " ( Inverted Commas) by \" .

提交回复
热议问题