YouTube embedded videos not working

Status
Not open for further replies.

polonyc2

Fully [H]
2FA
Joined
Oct 25, 2004
Messages
30,624
no embedded YouTube videos seem to be working for me...I tried with both MS Edge and Google Chrome...the direct link to the YouTube video works fine but I cannot play it within the post itself...the YouTube website also works fine...seems like something is not working with the forum embedded videos...I attached a screenshot
 

Attachments

  • YT.png
    YT.png
    68.3 KB · Views: 0
no embedded YouTube videos seem to be working for me...I tried with both MS Edge and Google Chrome...the direct link to the YouTube video works fine but I cannot play it within the post itself...the YouTube website also works fine...seems like something is not working with the forum embedded videos...I attached a screenshot
I can see FrgMstr 's truck embed fine, on a mobile chrome based browser (Samsung).
Drop in a couple of your own again please into this thread.

The one I embedded, did NOT connect to YT servers at first. Most likely an issue on their end.


View: https://youtu.be/PGd7VKud2h0?t=1257
 
same here...I can see the thumbnail fine but it won't play the video...gives the error 'YouTube refused to connect'...but if you click the direct link underneath the embedded video it works fine
 
This is what Grok says.... Will wait for RoldanLT as I don't touch his setup code.

**HardForum’s strict Cross-Origin-Embedder-Policy (COEP) is blocking the YouTube player iframes.**

### What’s happening
In the thread you linked, users see YouTube thumbnails but get “YouTube refused to connect” (or the video simply won’t play) when they try to start the embed. Direct links to YouTube work fine. This matches a known incompatibility.

HardForum is serving pages with these headers (confirmed on the site):

- `Cross-Origin-Embedder-Policy: require-corp`
- `Cross-Origin-Opener-Policy: same-origin`
- `Cross-Origin-Resource-Policy: same-origin`

`require-corp` means every cross-origin resource (including iframes) must explicitly opt in via a proper `Cross-Origin-Resource-Policy` or CORS/COEP headers. YouTube’s embed endpoints (`www.youtube.com/embed/VIDEO_ID`) currently only send COEP as a *report-only* header. That is not enough for a page using enforcing `require-corp`, so browsers block the player with a connection refusal (`net::ERR_BLOCKED_BY_RESPONSE` / “refused to connect”).

Thumbnails from `i.ytimg.com` still load because they have the needed CORP headers. The player iframe itself does not.

This is a known YouTube issue (multiple Google Issue Tracker reports from 2024–2026 describe exactly this failure when the embedding page uses COEP `require-corp`). YouTube has indicated they have a fix in progress, but it is not fully deployed yet.

### Contributing details
HardForum uses the **s9e Media Sites** addon for embeds. The generated YouTube placeholders set `referrerpolicy="origin"` on the eventual iframe. YouTube has become stricter about referrers (Error 153 “Video player configuration error” is common when the referrer is missing or too limited). The page itself sends `Referrer-Policy: strict-origin-when-cross-origin`, but the iframe attribute overrides it. Updating the embed template to `strict-origin-when-cross-origin` is good practice, though the COEP block is the primary reason the connection is refused right now.

The site also has a very restrictive `Permissions-Policy` (disabling things like `encrypted-media`, `fullscreen`, etc.), which can cause secondary playback problems even if the frame loads.

### What would fix it
For HardForum admins:

1. **Best short-term fix** — Drop or relax COEP if cross-origin isolation (SharedArrayBuffer, etc.) is not required:
- Change `Cross-Origin-Embedder-Policy` from `require-corp` to `unsafe-none` (or remove the header).
- Optionally try `credentialless` (mixed results with YouTube).

2. Update the s9e YouTube embed template to add the `credentialless` attribute on the iframe (Chrome 96+ workaround mentioned in Google’s tracker) and set `referrerpolicy="strict-origin-when-cross-origin"`.

3. Wait for YouTube’s COEP support on embeds to be fully rolled out.

This is a site-wide configuration conflict, not a problem with specific videos, individual browsers, or ad blockers. It started appearing because HardForum (or their Cloudflare/security setup) enabled the strict isolation headers.
 
Last edited:
someone else has a post about their browser complaining about that COEP thing. it think it may be googles end.
vids were working for me earlier, but not now.
 
Status
Not open for further replies.
Back
Top