Skip to content

How to Fix Mixed Content Error?

About

What is a Mixed Content Error?

Mixed content refers to a situation where a web page loads content from both secure (HTTPS) and insecure (HTTP) sources. For example, when a request is made to a vService defined on TR7 over HTTPS, but the application server tries to display a PNG image over HTTP, a Mixed Content error will appear on the Console.

How to Fix a Mixed Content Error?

The Mixed Content error can be resolved by adding appropriate header information at the moment of response.

Interface

Mixed Content Error Solution

Step > 1

To fix this error on TR7, first, follow the steps "Traffic Manager > Actions > Add" in the web management interface. Select "Add HTTP Header" as the action type, and "On Response" as the timing.

The header name "Content-Security-Policy" and the header content "upgrade-insecure-requests" are added, and the action is configured to run "Always" without specifying any conditions.

LOGO

Step > 2

To assign the created action to the vService, open the edit screen of the relevant vService.

By activating "Details > Actions", select the created Add HTTP Header action, and click the "Save" button to apply the changes.

LOGO