I purchased a cheap VPS that is a Debian OS, I then installed my Spring Boot App, which listens for simple POST requests.
My main website is a HTTPS website, and when I try to communicate via JS to my cheap VPS server I get the error
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR
I assume it's because my VPS IP is not SSL certified, it's a tomcat server; do I need to adjust my Tomcat settings in order to resolve this problem? I am not sure where to go from here. Any help is appreciated.
TL;DR -
All I am trying to do is perform this line of code, to a REST API that I'm hosting on another server address
$.ajax({
type: "POST",
url: "//223.165.6.213:8080/contact-us",
data: JSON.stringify(data),
contentType: "application/json; charset=utf-8",
success: function (response) {
console.log(response);
}
});
It works on Localhost or when I connect to my website via http://{url}, but not when it's on a HTTPS(https://{url}) website.
If you need more information, just let me know. Thanks for reading, hope this is clear enough.