无访问控制允许原点

时间:2015-02-26 17:24:49

标签: php jquery ajax cakephp

在ajax请求中,我有时会在某些计算机上出现此错误

XMLHttpRequest cannot load http://www.xxx.com.br/sis/manager/product_variations/add. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.com.br' is therefore not allowed access

/sis/只是系统的临时位置。

这是ajax:

 $.ajax({
                type: "POST",
                url: domain+'manager/product_variations/add',
                data: data,

...

请注意,错误只会出现在某些计算机上,我不知道原因。

取而代之的是200 OK,这会给我302 moved temporaly

0 个答案:

没有答案
相关问题