Something pretty peculiar is happening with a simple JS GET client. Here’s the code using JQuery:
<h3 onclick="$.ajax({
url: 'http://147.102.82.124/',
type: 'GET',
error: function() { alert('FAILURE'); },
success: function() {alert('SUCCESS')}
});">Click me</h3>
The method fires up a ‘FAILURE’ message unless the url is set to localhost. At the same time, the remote server replies with a 200 status code ( I checked using the web console of Firefox).
[15:06:59.135] GET http://147.102.82.124/ [HTTP/1.1 200 OK 9ms]
And ideas?
As a security measure cross origin requests are not allowed, see CORS