There seems to be a bug with YouTube where they serve a http URL in <link> tags for their OEmbed endpoint, but they do not actually allow requests to the http URL, which is why YouTube previews currently do not work.
There seems to be a bug with YouTube where they serve a http URL in <link> tags for their OEmbed endpoint, but they do not actually allow requests to the http URL, which is why YouTube previews currently do not work. 8 comments
So, how are we going to fix it without hardcoding special treatment for YouTube? Maybe always trying OEmbed endpoint with https would be a safe assumption nowadays? Not sure if there are any OEmbed providers that don't offer https. @Gargron Seems to me like special-casing it for Youtube would be the cleaner option. It's only them misbehaving, and hopefully it will eventually be fixed and the special case can be removed again. @Gargron If you try the http->https method, please make it a fallback only if the *actually stated* url fails. If you do that, I think that’s better than special casing for YouTube. |
@Gargron a feature rather than bug no doubt! Playing cat and mouse with the API to keep 3rd party apps from using their content without dev keys (or rather they just changed their API and we only find out when things break!)