I'm not sure if I understand your question. Cookies are not involved with the actual embedding. It's not cookies, but the website code that does the trick. When you post a link, the code looks at the link and if it recognises it as a TikTok video, it will rewrite the link to the embed code.
Does that answer your question?