<tfoot id='NEWwY'></tfoot>

      • <bdo id='NEWwY'></bdo><ul id='NEWwY'></ul>

      <small id='NEWwY'></small><noframes id='NEWwY'>

        <legend id='NEWwY'><style id='NEWwY'><dir id='NEWwY'><q id='NEWwY'></q></dir></style></legend>
      1. <i id='NEWwY'><tr id='NEWwY'><dt id='NEWwY'><q id='NEWwY'><span id='NEWwY'><b id='NEWwY'><form id='NEWwY'><ins id='NEWwY'></ins><ul id='NEWwY'></ul><sub id='NEWwY'></sub></form><legend id='NEWwY'></legend><bdo id='NEWwY'><pre id='NEWwY'><center id='NEWwY'></center></pre></bdo></b><th id='NEWwY'></th></span></q></dt></tr></i><div id='NEWwY'><tfoot id='NEWwY'></tfoot><dl id='NEWwY'><fieldset id='NEWwY'></fieldset></dl></div>

        嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options"设置为“SAMEO

        Embed YouTube video - Refused to display in a frame because it set #39;X-Frame-Options#39; to #39;SAMEORIGIN#39;(嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options设置为“SAMEORIGIN)
      2. <legend id='bP8UA'><style id='bP8UA'><dir id='bP8UA'><q id='bP8UA'></q></dir></style></legend>
        <tfoot id='bP8UA'></tfoot>
          <bdo id='bP8UA'></bdo><ul id='bP8UA'></ul>
            <i id='bP8UA'><tr id='bP8UA'><dt id='bP8UA'><q id='bP8UA'><span id='bP8UA'><b id='bP8UA'><form id='bP8UA'><ins id='bP8UA'></ins><ul id='bP8UA'></ul><sub id='bP8UA'></sub></form><legend id='bP8UA'></legend><bdo id='bP8UA'><pre id='bP8UA'><center id='bP8UA'></center></pre></bdo></b><th id='bP8UA'></th></span></q></dt></tr></i><div id='bP8UA'><tfoot id='bP8UA'></tfoot><dl id='bP8UA'><fieldset id='bP8UA'></fieldset></dl></div>
              <tbody id='bP8UA'></tbody>

              <small id='bP8UA'></small><noframes id='bP8UA'>

                  本文介绍了嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options"设置为“SAMEORIGIN"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试用我从其他地方获得的一些资源来提供我的 Django 页面.

                  I am trying to feed my Django page with some resource I am getting from somewhere else.

                  在提要中,我的 YouTube 视频的 URL 如下:https://www.youtube.com/watch?v=A6XUVjK9W4o

                  Inside the feed, I have YouTube videos with URL like: https://www.youtube.com/watch?v=A6XUVjK9W4o

                  一旦我将它添加到我的页面中,视频就不会显示,说:

                  Once I added this into my page, the video does not show up, saying:

                  拒绝显示'https://www.youtube.com/watch?v=A6XUVjK9W4o' 在一个框架,因为它将X-Frame-Options"设置为SAMEORIGIN".

                  Refused to display 'https://www.youtube.com/watch?v=A6XUVjK9W4o' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

                  然后我说,好吧,如果我将 watch 更改为 embed 会怎样.然后YouTube播放器出现,但没有视频,说:

                  Then I said, well, what if I change watch to embed. Then YouTube player shows up, but no video, saying:

                  我怎样才能让它工作?

                  我在 HTML 中显示它是这样的:

                  I am showing it in HTML like this:

                  <iframe width="420" height="315"
                      src="{{vid.yt_url}}">
                  </iframe>
                  

                  我用谷歌搜索了将近一个小时,但没有成功的迹象.我试图附加 &output=embed - nada...

                  I googled almost for an hour, but no sign of success. I tried to append &output=embed - nada...

                  推荐答案

                  您必须确保 URL 包含 embed 而不是 watch 作为 /embed 端点允许外部请求,而 /watch 端点不允许.

                  You must ensure the URL contains embed rather watch as the /embed endpoint allows outside requests, whereas the /watch endpoint does not.

                  <iframe width="420" height="315" src="https://www.youtube.com/embed/A6XUVjK9W4o" frameborder="0" allowfullscreen></iframe>
                  

                  这篇关于嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options"设置为“SAMEORIGIN"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?(如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?) - IT屋-程序员软件开发技术分享社
                  Scale background image to fit ie8 window(缩放背景图像以适合 ie8 窗口)
                  Safari 5.1 breaks CSS table cell spacing(Safari 5.1 打破 CSS 表格单元格间距)
                  Put in bold part of description in metatag Drupal module(将描述的粗体部分放在元标记 Drupal 模块中)
                  Is it possible to compile Coffeescript code in script tags in html files?(是否可以在 html 文件的脚本标签中编译 Coffeescript 代码?)

                    <small id='qlJG4'></small><noframes id='qlJG4'>

                        <bdo id='qlJG4'></bdo><ul id='qlJG4'></ul>
                      • <tfoot id='qlJG4'></tfoot>
                          <tbody id='qlJG4'></tbody>

                      • <legend id='qlJG4'><style id='qlJG4'><dir id='qlJG4'><q id='qlJG4'></q></dir></style></legend>

                            <i id='qlJG4'><tr id='qlJG4'><dt id='qlJG4'><q id='qlJG4'><span id='qlJG4'><b id='qlJG4'><form id='qlJG4'><ins id='qlJG4'></ins><ul id='qlJG4'></ul><sub id='qlJG4'></sub></form><legend id='qlJG4'></legend><bdo id='qlJG4'><pre id='qlJG4'><center id='qlJG4'></center></pre></bdo></b><th id='qlJG4'></th></span></q></dt></tr></i><div id='qlJG4'><tfoot id='qlJG4'></tfoot><dl id='qlJG4'><fieldset id='qlJG4'></fieldset></dl></div>