none
Embed video from onedrive causes redirection of parent page RRS feed

  • Question

  • Hello!

    I have created code for video from my onedrive storage

    <iframe 
    src="https://onedrive.live.com/embed?cid=6AA950232A3DD9FD&resid=6AA950232A3DD9FD%21122466&authkey=AA7RoncQfIVs3dE"
     width="320" height="180" frameborder="0" scrolling="no" 
    allowfullscreen>

    But when i placing it on my website, sometimes it causes redirection of parent page to this video.

    If i modify the code to this:

    <iframe sandbox="allow-same-origin allow-forms allow-scripts"
     src="https://onedrive.live.com/embed?cid=6AA950232A3DD9FD&resid=6AA950232A3DD9FD%21122466&authkey=AA7RoncQfIVs3dE"
     width="320" height="180" frameborder="0"
     scrolling="no" allowfullscreen>

    To prevent redirection, then i see these errors in web browser's console and video is not showing:

    OneDrive script error

    Again, it happens not all the time, but very often and it's really annoying...

    How fix this?

    P.S. I asked the same question on Answers OneDrive, but they send me here.

    Friday, November 10, 2017 2:09 PM

Answers

All replies