Skip to content

YouTube Embed Error 153 in ChatGPT iOS App WKWebView #161

Description

@ArashDailyDoses

YouTube video embeds fail with Error 153 (“Video player configuration error”) when rendered inside ChatGPT iOS app widgets (WKWebView), while the same embed works correctly in iOS Safari, desktop browsers, and the ChatGPT web app.

Environment:

  • Platform: ChatGPT iOS App (native app, not web)
  • ChatGPT App Version: 1.2025.343
  • Device: iPhone 14 Pro
  • Widget / Embed Domain: web-sandbox.oaiusercontent.com

Expected Behavior:
Embedded YouTube videos should load and play normally inside the ChatGPT iOS app, consistent with Safari and desktop browser behavior.

Actual Behavior:
The YouTube player fails to load and displays Error 153 (“Video player configuration error”) only within the ChatGPT iOS app.

Scope:
Works:

  • iOS Safari (same device)
  • Desktop browsers (Chrome, Safari, Firefox)
  • ChatGPT web version (chat.openai.com)

Fails:

  • ChatGPT iOS app only

Steps to Reproduce:

  1. Create a ChatGPT widget containing a standard YouTube iframe embed: <iframe src="https://www.youtube.com/embed/VIDEO_ID?rel=0&modestbranding=1&playsinline=1" referrerpolicy="strict-origin-when-cross-origin" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen ></iframe>
  2. Open the widget inside the ChatGPT iOS app.
  3. Observe that the YouTube player fails with Error 153.
  4. Open the same widget URL in iOS Safari on the same device — the video loads successfully.

Technical Notes / Suspected Cause:
YouTube’s embedded player requires valid HTTP Referer headers per its Embedded Player API requirements.
The ChatGPT iOS app’s WKWebView configuration appears to block, strip, or misconfigure the referrer headers, causing YouTube to reject the embed with Error 153.

Attempted Mitigations (all unsuccessful):

  • Setting referrerpolicy="strict-origin-when-cross-origin"
  • Using youtube.com instead of youtube-nocookie.com
  • Removing origin and enablejsapi parameters
  • Using a minimal iframe embed (no JavaScript API)
  • Testing multiple video IDs

Impact:
This prevents YouTube content from being embedded or previewed inside ChatGPT iOS widgets, while the same content works everywhere else.

Additional Context:
This appears specific to the ChatGPT iOS WKWebView environment rather than YouTube embed configuration or account restrictions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions