TLS / HTTPS

How to fix mixed content (HTTP on HTTPS pages)

Quick fix guide with step-by-step instructions. Barrion detects this finding in your scans; use this page to remediate it.

What it is

Mixed content occurs when a page is loaded over HTTPS but requests resources (scripts, images, styles, iframes) over HTTP. Browsers block active mixed content (scripts) and may warn or block passive mixed content (images) depending on the browser.

Why it matters

Mixed content weakens HTTPS: an attacker on the network can replace or tamper with HTTP resources. Scripts loaded over HTTP can be modified to steal data or hijack the session. Fixing mixed content is required for a fully secure HTTPS site.

How to fix it

  1. 1

    Find mixed content

    Use the browser dev tools Console (look for mixed content warnings) or run Barrion's mixed content check. Note which URLs are requested over HTTP.

  2. 2

    Update URLs to HTTPS or relative

    Change all resource URLs from http:// to https:// or use protocol-relative URLs (//) or relative paths so they use the same scheme as the page.

  3. 3

    Fix hardcoded or CMS content

    Check templates, CMS content, and third-party embeds. Replace http:// with https:// for images, scripts, styles, and iframes.

  4. 4

    Redeploy and re-scan

    Deploy changes and run the mixed content check again to confirm no HTTP resources remain on your HTTPS pages.

Check your site

Run Barrion's free tls / https check to see if this finding applies to your app and get a full report.

Run free check →

Secure Your Company's Web Apps

Trusted by CTOs, dev teams, and agencies for compliance monitoring and audit-ready security reports.
Get detailed security reports with actionable fixes in under 60 seconds.

Barrion logo icon

Barrion delivers automated security scans and real-time monitoring to keep your applications secure.

Contact us

Have questions or need assistance? Reach out to our team for support.

© 2025 Barrion AB (559569-0917) - All Rights Reserved.