title: Cross-Origin Request Blocked in Neo4j API
body: <p>I am trying to call Neo4j API from jquery.</p>
  
  <p>when i am invoking GET requests it works perfectly </p>
  
  <p>GET request endpoint</p>
  
  <pre><code>http://localhost:7474/db/data/node/10
  </code></pre>
  
  <p>but when i am invoking POST requests with json body it returns following error. </p>
  
  <p>POST request endpoint </p>
  
  <pre><code>http://localhost:7474/db/data/cypher
  </code></pre>
  
  <p>Error Message</p>
  
  <pre><code>"NetworkError: 500 Server Error - http://localhost:7474/db/data/cypher"
  
  Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:7474/db/data/cypher. This can be fixed by moving the resource to the same domain or enabling CORS.
  </code></pre>
  
  <p>When i try from Advance REST Client, it returns correct response. Please refer following code</p>
  
  <pre><code>$(document).ready(function(){
    $("#btnQuery").click(function(){
  
          var Request = "{'query' : 'MATCH (Movie { name:{searchName} })-[SHOWS]-(Cinema) RETURN Cinema','params' : {'searchName' : 'Rio 2'}}";
  
          //url = mainURL +"cypher";
          url = "http://localhost:7474/db/data/cypher";
  
          $.ajax({
          url: url,
          headers : {
                        'Authorization' : 'Bearer 5f0e0d8c2a5477d4a8e79fa2d34f84a'
                      },
          crossDomain: true,
          type: 'POST',
          dataType: 'application/json',
  
          complete: function(xhr) {
              if (xhr.readyState == 4) {
                  if (xhr.status == 201) {
                      alert("Data is loaded");
                      clearUsers();
                      isUserAdd = false;
                  }
              } else {
                  alert("Data is not loaded");
              }
          },
  
          beforeSend: function (xhr) {
          xhr.setRequestHeader("accept", "application/json");
          xhr.setRequestHeader("Content-Type", "application/json");
          },
              data: ('(' + Request + ')')
          });
  
  
  });
  });
  </code></pre>