🌐Mixed content (http request on an https page)
Mixed Content: The page at 'https://…' was loaded over HTTPS, but requested an insecure resource 'http://…'. This request has been blocked.
A secure https site tried to load an image or API from an insecure http address, so the browser blocked it.
🤔 Why does it happen?
- There are still addresses starting with http:// in the code or data
- The API server you're calling doesn't support https
🔧 Try this
- Change http:// addresses to https://
- For outside images, find an address that serves them over https
- If the API doesn't support https, call it through your own server
🤖 Ask your AI like this
I get a Mixed Content error in the console on my deployed site. Please find every http:// address in the project and change it to https, and tell me what to do with any address that can't be changed.
Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.
Related terms
Other errors in this group
- Page not found (404)
404 Not Found - Internal server error (500)
500 Internal Server Error - Authentication failed (401)
401 Unauthorized - No permission (403)
403 Forbidden - Too many requests (429)
429 Too Many Requests - CORS error (cross-site request blocked)
blocked by CORS policy - Couldn't send the request (Failed to fetch)
TypeError: Failed to fetch - Connection refused (localhost refused to connect)
ERR_CONNECTION_REFUSED - Request method not allowed (405)
405 Method Not Allowed - What you sent is too big (413)
413 Payload Too Large - The middle server got no answer (502)
502 Bad Gateway - Service temporarily unavailable (503)
503 Service Unavailable - Redirects loop forever (too many redirects)
ERR_TOO_MANY_REDIRECTS - Blocked by an ad blocker
net::ERR_BLOCKED_BY_CLIENT - An image or file won't load
Failed to load resource: 404 (Not Found)