javascript - Embedding video in an iframe? -


i have below code embed video. not working. suggestions?

<!doctype html> <html> <body>  <iframe src="https://vimeo.com/63534746"></iframe>  </body> </html> 

the error in console refused display 'https://vimeo.com/63534746' in frame because set 'x-frame-options' 'sameorigin'. vimeo blocking doing trying do.

there 3 possible values x-frame-options:

deny - page cannot displayed in frame, regardless of site attempting so.

sameorigin - page can displayed in frame on same origin page itself.

allow-from uri - page can displayed in frame on specified origin.

instead of embedding whole page, can use embed code provided vimeo (found clicking 'share' button).

<iframe src="https://player.vimeo.com/video/63534746?color=ffffff" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <p>     <a href="https://vimeo.com/63534746">light bikes</a> <a href="https://vimeo.com/ericcorriel">eric corriel</a> on <a href="https://vimeo.com">vimeo</a>. </p> 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -