RetroFed Forums
Your home away from modern life.
YouTube video links embedded in Mastodon are playing perfectly, but the same are not playing in Piefed.
Post Reply
AuthorMessage
MastKalandar feddit.online MastKalandar@feddit.online
Joined: 2026-04-28
(edited) Quote

https://hear-me.social/@codewizard/116546338265386095

This is the link of a Mastodon post. If you open the link, you come across youtube links which play when the button is clicked. But youtube videos aren't playing in Piefed.

What's the problem with Piefed ??🤔🤔

10   Original
FiniteBanjo feddit.online FiniteBanjo@feddit.online
Joined: 2025-12-23
#2 · Quote Reply

I think there is an issue with some video players that reveal your IP to the hosting instance?

1
in_my_honest_opinion piefed.social in_my_honest_opinion@piefed.social
Joined: 2026-01-21
#3 · Quote Reply

Works fine for me on waterfox

3
Jerry on PieFed feddit.online Jerry@feddit.online
Joined: 2024-09-29
#4 · Quote Reply

I'll investigate this more tomorrow

6
Ulrich feddit.org Ulrich@feddit.org
Joined: 2024-12-22
#5 · Quote Reply

Try Blorp

4
mesa piefed.social mesamunefire@piefed.social
Joined: 2024-12-27
#6 · Quote Reply

Im seeing it working on firefox mobile.

What error are you seeing?

1
Jerry on PieFed feddit.online Jerry@feddit.online
Joined: 2024-09-29
#7 · Quote Reply

This should be fixed now. It was an nginx configuration change.

Test post here: https://feddit.online/post/1667899

2
MastKalandar feddit.online MastKalandar@feddit.online
Joined: 2026-04-28
#8 · Quote Reply

This should be fixed now. It was an nginx configuration change. Test post here: https://feddit.online/post/1667899

Thanks 😊😊👍

2
INeedMana piefed.zip INeedMana@piefed.zip
Joined: 2025-07-03
#9 · Quote Reply

This should be fixed now. It was an nginx configuration change. Test post here: https://feddit.online/post/1667899

Could you point me in the direction what change was needed to make it work? Was it CSP?

1
Jerry on PieFed feddit.online Jerry@feddit.online
Joined: 2024-09-29
#10 · Quote Reply

Could you point me in the direction what change was needed to make it work? Was it CSP?

YouTube requires a valid Referer header to allow embedded playback, and if Nginx is stripping it out, like mine did, the videos throw an error and refuse to play.

I fixed this by updating the referrer-Policy header. I updated the server {} block with this:

add_header Referrer-Policy "strict-origin-when-cross-origin" always;
2
Post Reply
Back to top