HostName mismatch: use a domain name (ex. https://myname.myorg.com) instead of https://localhost:port

StackOverflow https://stackoverflow.com/questions/21281228

  •  01-10-2022
  •  | 
  •  

Pergunta

I have a html application that sends an AJAX request to a Qt C++ HTTP Server on my local computer (hosted at "https://localhost:8081") but the AJAX request seems to fail due to host name mismatch issue. My question is "Are there any possible solutions that will allow me use my wild card certificate usable in my Qt Application" or is there any way that I could redirect all requests to a certain domain (valid for my certificate) to a localhost URL in my machine?

Thanks in advance.

Foi útil?

Solução

Finally had this problem solved.

This link is a good start for people who will have the same problem: http://www.codeproject.com/Articles/1463/Using-http-www-yourname-com-instead-of-http-localh

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top