embed icon indicating copy to clipboard operation
embed copied to clipboard

How to embed videos with content security policy?

Open 9mido opened this issue 4 years ago • 0 comments

Examples:

https://stripe.com/docs/security/guide#content-security-policy

https://docs.hcaptcha.com/#content-security-policy-settings

Maybe add some docs or a section somewhere of how to embed dtube videos with CSP.

Video I used for the embed:

https://d.tube/#!/v/techcoderx/04mhfe0o

I tried 'https://emb.d.tube' inside of Frame SRC and i got:

Bad video JSON SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object.decode (dtube.min.js:17)
    at startup (dtube.min.js:28)
    at HTMLDocument.<anonymous> (dtube.min.js:28)

9mido avatar Jul 17 '21 01:07 9mido