Skip to content

Conversation

@tonyteate
Copy link
Contributor

@tonyteate tonyteate commented Nov 14, 2025

📲 What

Include a Referrer Header in Project Campaign embedded WebViews

🤔 Why

YouTube has recently begun enforcing a requirement that API clients that use the embedded player provide "identification" through the HTTP Referrer.

As reported in SD-4546, YouTube videos embedded within Project Campaign have stopped loading, instead displaying Error 153 Video configuration error.

🛠 How

As suggested in the Required Minimum Functionality documentation, swap WebView.loadData() for WebView.loadDataWithBaseURL(), which will send the base URL in the Referrer HTTP header.

👀 See

Before 🐛 After 🦋

📋 QA

Story 📖

[MBL-2852] Include a Referrer Header in Project Campaign embedded WebViews - Jira

@tonyteate tonyteate marked this pull request as ready for review November 14, 2025 19:43
Copy link
Contributor

@Arkariang Arkariang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@tonyteate tonyteate merged commit e22d34c into master Nov 14, 2025
3 checks passed
@tonyteate tonyteate deleted the tony/mbl-2852 branch November 14, 2025 21:26
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.

3 participants