Aug 11 2023 05:33 AM
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 work. Any suggestions?
Aug 11 2023 05:55 AM - edited Aug 11 2023 05:56 AM
@KevHoustonInsight Is this a public video URL? I mean can anyone access the video URL without any login to Tiktok?
If yes, you can use the Embed web part in SharePoint to embed the Tiktok video to SharePoint online modern experience pages.
Also, make sure you have added the video URL domain to HTML Field Security settings of your SharePoint site. More information & detailed steps at: Allow or restrict the ability to embed content on SharePoint pages
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.
Aug 11 2023 06:00 AM
Aug 11 2023 06:07 AM
Aug 11 2023 06:16 AM
@KevHoustonInsight Then maybe the issue is at Tiktok end and not at SharePoint end. Maybe Tiktok has some video URL sharing policies. Do you get any errors in browser console (developer tools)?
Can you share the video URL with us? I will try adding the URL in our SharePoint site. However, I am not completely sure if the video will work for me as I am from India & Tiktok is banned here currently. But, I will try and see if it works by embedding to SharePoint.
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.
Aug 11 2023 06:20 AM
Aug 11 2023 06:55 AM
Solution@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.
Aug 11 2023 07:02 AM
Aug 11 2023 06:55 AM
Solution@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.