Tag: neo4j

neo4j访问控制头

我正在使用neo4j REST api并进行jquery ajax调用这是我第一次使用REST 我试图打这样的电话: $.ajax({ url: “http://localhost:7474/db/data/cypher”, accepts: “application/json; charset=UTF-8″, contentType:”application/json”, dataType:”json”, data:{ “query” : “start n = node(*) return n”, “params” : {} }, type:”POSt”, success:function(data,xhr,status) { console.log(data); }, error:function(xhr,err,msg){ console.log(xhr); console.log(err); console.log(msg); } }); 使用此我得到以下错误: XMLHttpRequest cannot load http://localhost:7474/db/data/cypher. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore […]