回答編集履歴
1
追記
answer
CHANGED
@@ -3,5 +3,11 @@
|
|
3
3
|
[html - embed youtube video - Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' - Stack Overflow ](https://stackoverflow.com/questions/25661182/embed-youtube-video-refused-to-display-in-a-frame-because-it-set-x-frame-opti)
|
4
4
|
|
5
5
|
|
6
|
+
> You must ensure the URL contains embed rather watch as the /embed endpoint allows outside requests, whereas the /watch endpoint does not.
|
6
7
|
|
8
|
+
追記:
|
9
|
+
例えばyoutubeの動画ページのURLが
|
7
|
-
|
10
|
+
https://www.youtube.com/watch?v=hogehoge
|
11
|
+
だとしたら、埋め込み用iframeで使用されるURLは、
|
12
|
+
https://www.youtube.com/embed/hogehoge
|
13
|
+
の様です。
|