Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix YouTube embeds failing due to YouTube serving wrong OEmbed URLs #15716

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Feb 12, 2021

YouTube serves http URLs as OEmbed endpoints on its pages, however, it returns HTTP 403 when trying to access them, saying that https is required. I believe it is a safe assumption that if the URL of the page is served over https, we can override the scheme of the OEmbed endpoint to also be https, thereby fixing this issue.

@Gargron Gargron merged commit f8972d4 into main Feb 12, 2021
@Gargron Gargron deleted the fix-youtube-oembed branch February 12, 2021 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants