VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Find mixed content in a video embed on HTTPS

A secure website may still reference older, unencrypted media addresses. Differentiate between direct video file links and iframe embeds before identifying the root cause of loading problems.

A stylized browser window with a shield and video icon stands beside two film cards. One card is linked by a bridge, while the other shows a warning sign.
The origin of every loaded resource is part of an embedding check. The illustration does not depict actual network traffic.Image: Vioneto · AI-generated illustration

Start with the specific address your HTTPS page requests for video playback. If the published code still references HTTP, mixed content may occur. Check separately whether it involves a direct video file, an embedded player, or an additional loading process within the player.

An example following a website migration

A fictional company website has been migrated to HTTPS. In the older content module, the product video still references the example URL http://media.example.test/produkt.mp4. Another module embeds a full player using an HTTP iframe. Both references are outdated and relate to different resource types. The addresses mentioned here are purely for illustrative purposes and have not been accessed.

Therefore, first record the published address and the associated building block. Then search for the provider's designated secure viewer or embedding path. A design change is only assessed when the corresponding code appears correctly in the final reader view.

Automatic upgrading and blocking differ

MDN automatically distinguishes between high-priority and blocked mixed content on HTTPS pages. Direct audio and video resources generally fall into the high-priority category, while HTTP iframe content is classified as blockable. Additional restrictions apply when IP addresses are used directly as hosts. Therefore, the statement "HTTP video is always loaded unchanged" is equally invalid, and a one-size-fits-all explanation that applies the same blocking behavior to all cases is also incorrect.

MDN: Mixed content and affected resource types

A high-tier address requires a functional target.

An automatic redirection of requests generates neither a valid certificate nor a new file on the server. Moreover, the CSP directive upgrade-insecure-requests assumes that a secure destination is actually available. MDN explicitly states that no fallback to HTTP occurs when an HTTPS resource is missing. Therefore, do not treat this directive as a replacement for properly secured media URLs.

MDN: Behavior of upgrade-insecure-requests

Limit the affected loading process

  1. Open your browser's developer tools and reload the affected reader view. Search in the Console and Network tabs for the specific warning or failed resource.
  2. Assign the notification to the player frame, the video file, or a subsequently loaded component. A successfully loaded page header does not provide any information about this separate request.
  3. Compare the existing embed code with the current proposed HTTPS code. Retrieve valid access and video keys in the process.
  4. Let the responsible authority verify the secure destination if it is not reachable. Then, recheck the starting point and a transition within the video on the published page.

When the secure player starts but a different address fails later, record this second observation separately. An old HTTP reference, for example, might have remained in a subsequent module or an older configuration. Modify each verified reference and test the affected workflow instead of rebuilding the entire page at once.

The diagnosis is performed using effective security measures. Allowing insecure content in the browser would not serve as a reliable sign that a website error has been resolved. This article outlines a testing strategy; no website was reconfigured, and no specific mixed-content request was measured.

Categorize other reasons for a blocked iframe embedding

Systematically identify playback problems

Topics

Sources and further reading

  1. https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Mixed_content
  2. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/upgrade-insecure-requests