我有这个ajax请求,但它只在本地工作(不,我不使用像wampserver这样的本地服务器),我错过了什么?
$.ajax({
url: "http://domain/folder/something.php",
dataType: "json",
type: "POST",
data: {
q: enviar
},
success: function( data )
{
//Some code
},//fin success
});//Fin ajax
当页面在服务器中时,我也会收到此错误:" No' Access-Control-Allow-Origin'标头出现在请求的资源上。起源' http://pageserver.com'因此不允许访问。"
所以,如果有人能解释我的最新情况,我会非常感激
答案 0 :(得分:0)
What this means is the file you are trying to access does not have permissions set up for your application to talk to it.