Skip to content

How to embed videos with content security policy? #46

@9mido

Description

@9mido

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions