JQuery AJAX request fails with 503 error with only "http://example.com" as value
I have the strangest problem. This is my javascript:
var value = "some_value";
$.ajax({
url: "process.php",
type: "POST",
dataType: "json",
data: {
value: value
},
success: function(data) {
console.log(data);
}
});
There are no surprises here. This is my process.php:
<?php exit; ?>
It doesn't really matter what is inside process.php
. The request is executed every time, unless the value is a valid URL. FROM
var value = "http://example.com"
at the beginning the request will end with error 503 The service is temporarily unavailable. What's wrong with my server configuration? I don't know what to try. I don't have .htaccess. Browser: Firefox 29.
source to share
This is almost certainly a web application firewall . Check if your server is running mod_security
. You will need to look at the rules in use mod_security
or others that are running on the server to find the one that is blocking urls.
source to share