this post was submitted on 06 Aug 2022
25 points (100.0% liked)

Lemmy

12544 readers
104 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

I can't found it how can I post embedded videos or posts from social media sites, like on Reddit or other similar sites.

you are viewing a single comment's thread
view the rest of the comments
[–] Fissionami@lemmy.ml 2 points 2 years ago (2 children)
[–] alexlehm@feddit.de 6 points 2 years ago (1 children)

Content Security Policy, this defines which domains may be used from the main site domain, this blocks different kinds of attacks but has the effect that random domains cannot be embedded

[–] Fissionami@lemmy.ml 1 points 2 years ago (1 children)

So it can be solved by whitelisting known safe domains such as catbox.moe who provides sharing media and such!

[–] alexlehm@feddit.de 2 points 2 years ago* (last edited 2 years ago) (1 children)

that would be possible, it would require "trusted" embed sources, e.g. youtube or catbox or whatever. i know of another reddit type clone site which has their own official video host and pic host that allow embed but they block others

[–] alexlehm@feddit.de 3 points 2 years ago

this would have to be the same on all instances for federated articles to work, so that would be a problem

[–] sexy_peach@feddit.de 2 points 2 years ago* (last edited 2 years ago)

content security policy