Pergunta

With links like http://youtu.be/1wAlbzKoYbs I am getting this error:

Refused to display 'http://www.youtube.com/watch?v=1wAlbzKoYbs&feature=youtu.be' 
in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Is there a way to fix that?

Links like http://www.youtube.com/watch?v=1wAlbzKoYbs works.

http://jsfiddle.net/6vheh/1/

Foi útil?

Solução

This is easier than I thought:)

        iframe: {
            patterns: {
                youtube_short: {
                  index: 'youtu.be/',
                  id: 'youtu.be/',
                  src: '//www.youtube.com/embed/%id%?autoplay=1'
                }
            }
        }

http://jsfiddle.net/6vheh/2/

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top