โฒ 9 โผ YouTube video links embedded in Mastodon are playing perfectly, but the same are not playing in Piefed. Question (feddit.online) submitted 6 months ago by MastKalandar@feddit.online to c/piefed_meta@piefed.social 8 comments fedilink hide all child comments 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 ??๐ค๐ค
[โ] Jerry@feddit.online 2 points 6 months ago (3 children) This should be fixed now. It was an nginx configuration change. Test post here: https://feddit.online/post/1667899 permalink fedilink source hideshow 3 child comments replies: [โ] MastKalandar@feddit.online [S] 2 points 6 months ago Thanks ๐๐๐ permalink fedilink source parent [โ] INeedMana@piefed.zip 1 point 3 months ago (1 child) Could you point me in the direction what change was needed to make it work? Was it CSP? permalink fedilink source parent hideshow 1 child comment replies: [โ] Jerry@feddit.online 2 points 3 months ago 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; ๐ 1 permalink fedilink source parent
[โ] MastKalandar@feddit.online [S] 2 points 6 months ago Thanks ๐๐๐ permalink fedilink source parent
[โ] INeedMana@piefed.zip 1 point 3 months ago (1 child) Could you point me in the direction what change was needed to make it work? Was it CSP? permalink fedilink source parent hideshow 1 child comment replies: [โ] Jerry@feddit.online 2 points 3 months ago 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; ๐ 1 permalink fedilink source parent
[โ] Jerry@feddit.online 2 points 3 months ago 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; ๐ 1 permalink fedilink source parent