Some web applications require multiple servers for multiple users (chat applications, multiplayer browser games, etc.) However, if data is loaded from a location other than the domain name, ERR_CERT_COMMON_NAME_INVALID error is given in Chrome and similar errors in other browsers because of SSL. For example:
img.src = "https://[IP Address]/logo.png"
would throw ERR_CERT_COMMON_NAME_INVALID, where [IP Address] is the ip address of the server. If it was loaded from the domain name instead it would work fine. The same problem also applies to websockets. So how can data be loaded from an ip addresses for a web application with multiple servers to work?