Forum Discussion

KevHoustonInsight's avatar
KevHoustonInsight
Copper Contributor
Aug 11, 2023

Embed Tiktok video on a SharePoint Online page

Is it possible to embed a Tiktok video on a SharePoint Online page? The embed code supplied from a specific video does not work. simplifying the code to a iframe with URL, height and width does not w...
  • ganeshsanap's avatar
    ganeshsanap
    Aug 11, 2023

    KevHoustonInsight I just tried embedding video on our SharePoint site and observed same behavior: a thumbnail of the video will briefly appear then change to the message 'ticktok refused to connect'.

     

    Also, there is an error like below in the browser console: Refused to display 'https://www.tiktok.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

     

    I think this response header is set at Tiktok end and hence not really SharePoint issue. Check this thread for more information about this error: Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' 

     

    You can check if there are any other ways to embed the Tiktok URLs to any web site. I tried using this iframe code: 

     

    <iframe src="https://www.tiktok.com/@bob_ross720/video/7246541601252625690" title="Tiktok Video" width="100%" height="600"></iframe>

     


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources