Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to embed videos with content security policy? #46

Open
9mido opened this issue Jul 17, 2021 · 0 comments
Open

How to embed videos with content security policy? #46

9mido opened this issue Jul 17, 2021 · 0 comments

Comments

@9mido
Copy link

9mido commented Jul 17, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant