Symptom: mixed content blocked on HTTPS site
Browsers block or upgrade insecure http:// requests made from an https:// page (mixed content), so scripts, API calls or images silently fail after deploy. Change those URLs to https://, including API base URLs in env vars.
Cause: The HTTPS page loads resources or calls APIs over plain HTTP.
How to fix it
- Open the browser console to find the http:// URLs.
- Switch them to https:// (API base URLs, images, scripts).
- Make sure your API/backend serves HTTPS.
- Consider a
Content-Security-Policy: upgrade-insecure-requestsheader as a safety net.
Example
Illustrative example, not from a customer project.
- VITE_API_URL=http://api.example.com
+ VITE_API_URL=https://api.example.com
FAQ
Why does it work locally?
Local dev usually runs on http://, so nothing is mixed.
Are images blocked too?
Browsers may upgrade some images to https; scripts and fetches are blocked.
QUICK FIX · $49 · THIS ERROR ONLY
Get this exact error fixed — $49 Quick FixFixed within scope, or we keep working until it is · Read-only access Not sure it's this error? $149 diagnosis
- Fixed, or we keep working free until it is (within the written scope).
- A human reviews every fix before it ships.
- Read-only access; fixes arrive as pull requests you merge.
- Your $149 diagnosis is credited in full toward any paid job.
One error, one root cause, fixed in your app. If it turns out bigger, we tell you before doing more, and your $49 is credited toward the fix, diagnosis or Launch Path if you book within 14 days. Fixing three? The 3-Error Pack is $119.
Bigger job: Getting the whole app live? Launch Path, $1,195 flat.
Built with Lovable, Bolt, Replit, Cursor or v0? See rescue by platform and the security checklist.