Getting 403 error with my chat system!

I have a problem with my chat system, I have a javascript file using Ajax to fetch messages.
But in the messageDiv I get a 403 error?

`var xhttp = new XMLHttpRequest();

function updateMessages() {
xhttp.onreadystatechange = function() {
if(this.readyState == 4 && this.status == 200) {
var response = this.responseText;
}
}
document.getElementById(“messageDiv”).innerHTML = response;
}

setInterval(updateMessages, 2000);`

If you already test it before you put it online and work, then the code is relatively okay.

The unfortunate thing is that InfinityFree won’t allow its user to use chat scripting. It’s for good reason though, as we’re on shared volume/hosting.

I’m sure there are some kind of agreement that needs to be read and checked somewhere in here, just before you register account.

@RCFGamer said:
I have a problem with my chat system

We don’t allow chat systems on our hosting. Please delete it.