How to fix mixed content on Adobe Commerce (Magento)
Ensure every resource (images, scripts, stylesheets, fonts, iframes) on your store is loaded over HTTPS, never HTTP, so browsers never block or warn about mixed content.
Steps for Adobe Commerce (Magento)
- In the Admin panel, go to Stores → Configuration → General → Web.
- Under 'Base URLs (Secure)', confirm all Base URL, Base Link URL, Base Skin URL, Base Media URL, and Base JavaScript URL values start with 'https://'.
- Under 'Base URLs' (the non-secure section), also set the Base URL to 'https://' to prevent any HTTP asset generation.
- Enable 'Use Secure URLs on Storefront' and 'Use Secure URLs in Admin' — set both to Yes.
- Run bin/magento cache:flush from the command line (or go to System → Cache Management → Flush Magento Cache).
- If hardcoded HTTP URLs persist in CMS pages or blocks, go to Content → Pages / Blocks, edit each, and update URLs in the HTML source view.
- Re-test using browser DevTools Console.
What is mixed content?
Mixed content happens when a webpage is served securely over HTTPS but one or more of its resources — images, JavaScript files, CSS stylesheets, fonts, videos, or iframes — are still requested over the old, unencrypted HTTP protocol. Browsers treat this as a security problem because the page itself is encrypted but parts of it are not. Modern browsers either silently upgrade, actively block, or display a security warning when they detect mixed content. The result is a broken or degraded experience for your shoppers.
Mixed content can break visible elements on your store (images that won't load, styles that don't apply, widgets that silently fail), directly hurting conversion rates. Browsers like Chrome and Firefox block "active" mixed content (scripts and stylesheets) outright, meaning functionality you depend on — checkout widgets, live chat, reviews — may simply stop working. A broken padlock icon or "Not Secure" warning in the address bar destroys shopper trust at the exact moment they are deciding whether to buy. Search engines also use HTTPS as a ranking signal, and a compromised security indicator can undermine the SEO benefit your SSL certificate is supposed to provide.
See the complete Mixed content guide for every platform and the full background.
Not sure if your Adobe Commerce (Magento) store has this?
Run a free SEOLZ scan — we’ll find mixed content and every other issue across your whole site.
Scan my site free