locked
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

  • For web development I'd ask in microsoft official IIS / ASP.Net forums over here.

    https://forums.iis.net/

    https://forums.asp.net/

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Friday, November 10, 2017 2:20 PM
  • You can also ask in the OneDrive dev forums om Stack Overflow and GitHub

    https://developer.microsoft.com/en-us/onedrive

     

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Just Karl Monday, November 20, 2017 3:22 PM
    • Marked as answer by Richard MuellerMVP Monday, November 27, 2017 9:51 AM
    Monday, November 13, 2017 1:44 PM

All replies

  • For web development I'd ask in microsoft official IIS / ASP.Net forums over here.

    https://forums.iis.net/

    https://forums.asp.net/

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Friday, November 10, 2017 2:20 PM
  • Thanks for reply, but how is the web development related to this?

    It's a simple html-page with iframe, leading to Microsoft OneDrive.

    Monday, November 13, 2017 5:06 AM
  • You can also ask in the OneDrive dev forums om Stack Overflow and GitHub

    https://developer.microsoft.com/en-us/onedrive

     

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Just Karl Monday, November 20, 2017 3:22 PM
    • Marked as answer by Richard MuellerMVP Monday, November 27, 2017 9:51 AM
    Monday, November 13, 2017 1:44 PM