Embeds from YouTube now say "Video unavailable" when you press play

Description

Steps to reproduce

  1. Log in

  2. Post > New Work

  3. Fill in required information

  4. In the work content, paste the embed code for a YouTube video, e.g. <iframe width="560" height="315" src="https://www.youtube.com/embed/yPQfcG-eimk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

  5. Post

What happens

If you click play on the video, it says the video is unavailable.

What should happen

The video should play.

How to test

  • Check that YouTube embeds can play, especially ones that are currently broken on beta.

  • Test again (e.g. for Twitter requests) again but expect the header Referer: https://archiveofourown.org/ where it used to be none.

 

Environment

None

Assignee

redsummernight

Reporter

Sarken

Roadmap

Works

Priority

High

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure