Quantcast
Viewing all articles
Browse latest Browse all 293129

Allow opting out of oembed discovery

Problem/Motivation

Drupal's oembed media source plugin includes support for oembed discovery.
When a URL can't be pattern matched against the provider list, Drupal makes a http request to the entered URL and looks for a < link type="application/$format+oembed" href="$url" /> element where $format is either XML or JSON and $href is a URL that provides resource information.
If this element is found, Drupal makes a subsequent request to that URL to fetch metadata.
In many cases this is not needed, there's a set list of Oembed providers (e.g. Youtube, Vimeo) and the discovery is overkill, making extraneous HTTP requests for URLs that are entered in error

Steps to reproduce

Proposed resolution

Add a config option to opt-out of resource discovery

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>