You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When retrieving the full oEmbed data for a Vimeo video with domain-level privacy, a Referer header is required. I couldn’t find a way to add this header to the request. What’s the recommended approach for handling this?
What is the safest way to verify that oEmbed data has been successfully fetched? The getOEmbed method always returns an OEmbed instance, so it’s unclear how to detect failures.
Thanks for the question. PR #592 adds a README section, "Checking the oEmbed result", explaining that a failed or empty oEmbed response can be detected with $info->getOEmbed()->all() === []. It also documents the Vimeo case: for videos with domain-level privacy, send an allowed Referer with addDefaultHeaders() and check domain_status_code in the oEmbed data. The PR also fixes a bug where that Referer was lost after a redirect.
It is planned for 4.6.3. To try it before the release:
composer require embed/embed:dev-fix/vimeo-4.6.3
We will leave the PR open for a few days in case you have comments.
Activity
royvangeel commentedon Jan 12, 2026
Anyone?
oscarotero commentedon Jan 12, 2026
You can configure the crawler to set default headers.
Vitorinox commentedon Nov 12, 2026
Thanks for the question. PR #592 adds a README section, "Checking the oEmbed result", explaining that a failed or empty oEmbed response can be detected with
$info->getOEmbed()->all() === []. It also documents the Vimeo case: for videos with domain-level privacy, send an allowedRefererwithaddDefaultHeaders()and checkdomain_status_codein the oEmbed data. The PR also fixes a bug where thatRefererwas lost after a redirect.It is planned for 4.6.3. To try it before the release:
We will leave the PR open for a few days in case you have comments.