0
我想在我的php頁面中嵌入YouTube頻道URL。但它給了以下錯誤:如何在PHP中嵌入YouTube頻道URL?
Refused to display ' https://www.youtube.com/channel/fakecode ' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
<div id="bgvideo" >
<div class="container" >
<div class="row" >
<div class="col-sm-8 col-sm-offset-2">
<div class="responsive-video">
<iframe width="420" height="315" src="https://www.youtube.com/channel/fakecode" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
頭( 'X框選項:GOFORIT');嘗試將此標題設置爲您的php文件或刀片文件 –
請發佈您的代碼 – Andrea
爲什麼要在您的網頁中嵌入頻道?你想要嵌入視頻或播放列表嗎? –