我有一个网站,一切正常。但只有当我从 php 调用 ajax 页面页面时,我才会收到以下错误。
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access test.php
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at salarypayroll.com Port 80</address>
</body></html>
它以前工作正常,现在正面临这样的问题。会是什么问题.......?是否像服务器中的任何权限或安全问题......?
我的功能:
function myfunc(){
var test = $("#test").val();
$.ajax({
type: 'POST',
url: 'test.php',
data:{
"test" : test,
},
success: function(data)
{
/*--------My code-------*/
}
});
}