最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - How to embed tiktok on own website using iframe? - Stack Overflow

programmeradmin1浏览0评论

I want to embed tiktok on my website.

Unfortunately, when I follow this guide (), I get an error.

Error:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'report-sample' 'unsafe-eval' apis.google c.paypal cdn.ampproject cdnjs.cloudflare client-api.arkoselabs code.jquery connect.facebook developers.kakao googleads.g.doubleclick interactives.ap js-cdn.music.apple/musickit/v3/musickit.js js.hcaptcha js.hsforms lf16-cdn-tos.tiktokcdn-us/obj/static-tx/bric-captcha/core-captcha/ pay.google recaptcha.google s20.tiktokcdn s3.amazonaws sf16-website-login.neutral.tiktokcdn-eu sf16-website-login.neutral.ttwstatic sf16-website.neutral.tiktokcdn-eu sf16-website.neutral.ttwstatic sf16m-website-login.neutral.ttwstatic ssl.bing static.captchami tiktok.captchami tx41v.arkoselabs unpkg vimeo www.google www.googleadservices www.googleapis www.googletagmanager www.gstatic www.vimeo". Either the 'unsafe-inline' keyword, a hash ('sha256-Rh1yD1vybhPJYDImLfN6osJk66wUwzS2EFGJ64u93gA='), or a nonce ('nonce-...') is required to enable inline execution.

Has this guide been outdated and this method no longer works?

My code:


<head></head>

<body>
    <iframe height="300" width="400"
        src="?&music_info=1&description=1" allow="fullscreen"
        title="test"></iframe>
</body>

</html>
发布评论

评论列表(0)

  1. 暂无评论