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