Your site loads over HTTPS and the browser shows a lock. But if the page pulls in even one script, stylesheet or API call over plain HTTP, that part is not protected. This is called mixed content, and AI-generated code creates it easily.
What happens
Modern browsers block most mixed content that can run code, such as scripts, and show errors in the console. Others, like images, may still load but weaken the page. Either way you get one of two outcomes: a broken feature that "works on localhost", or a request that travels unprotected.
Where it comes from
- A hard-coded
http://API URL left over from local development, for examplehttp://localhost:3000or a staging server. - An image, font or script link copied from an older tutorial with
http://in it. - A backend that redirects from HTTPS to HTTP behind a proxy, so absolute links come back as
http://. - A URL stored in your database with
http://in it, then rendered into the page.
How to check your own site
- Open your live site and press F12. Go to the Console and reload. Look for "Mixed Content" warnings.
- Go to the Network tab and filter by
http:. Anything that is nothttps:is a lead. - Search your built JavaScript for
http://. Ignore harmless namespace strings. Look for hosts you control or rely on. - Check for
localhostor127.0.0.1strings in the production bundle. They should not be there.
Fixes
- Use
https://for every external URL, or protocol-relative paths for your own assets. - Move API base URLs into environment variables and set them per environment.
- Turn on HSTS once everything works over HTTPS, so browsers refuse plain HTTP for your domain.
- Fix the proxy so the app knows the original request was HTTPS.
- Re-check after each deploy.
Check the outside view
I work on ProofForge. The free scan checks the public side of a URL you own or have permission to test: browser bundle, public files, headers and supported backend signals. It never signs in. A clean result means nothing was found in the public assets checked, not that the app is secure.
Run the free scan on the live URL. Run the free ProofForge scan. No account needed. Only scan apps you own or have permission to test. More guides: the index.
Top comments (0)