2
I am trying to order the address by zip code on a website, but is giving the following error:
Mixed Content: The page at 'https://meusite.com.br' was Loaded over HTTPS, but requested an insecure Xmlhttprequest endpoint 'http://cep.correiocontrol.com.br/20040901.json'. This request has been blocked; the content must be served over HTTPS.
The server that my site is hosted is HTTPS so I believe that is the problem... someone knows a site for query that is also HTTPS not to give security error?
It’s not just you putting
//:url
instead ofhttp://url
?– Wallace Maxters
@Wallacemaxters did this and made the following mistake:
GET https://cep.correiocontrol.com.br/20040901.json net::ERR_CONNECTION_TIMED_OUT
– Silvio Andorinha
It is error in mail server then.
– Wallace Maxters
Let me ask you, do you use any server language (server-side)? I have a solution for this that ended these headaches
– Wallace Maxters
When you use the HTTPS protocol when you want to transit data they must be via HTTPS protocol, in your case your server is using the HTTPS protocol but the mail webservice does not, so it does not allow you to request an unsafe protocol (in this case http), do the test: make the request through the http file, it will probably work.
– Laerte
@Laerte yes, that’s right... the problem I can’t do that because the system needs to be on an https server
– Silvio Andorinha
@Wallacemaxters yes, use php Laravel framework
– Silvio Andorinha
Dude I took a look here, the only solution is to have this URL available via https or you work with HTTP, but as you said yourself will not be possible.
– Laerte