Forum Discussion
Embed Tiktok video on a SharePoint Online page
- 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.
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.