title: Parse Server - Access to Parse Server using Javascript SDK
body: <p>I'm trying to access Parse Server (back4app.com) using Javascript SDK on my web app. I have <code>index.html</code> file like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;Javascript Parse SDK&lt;/title&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://npmcdn.com/parse@1.10.0/dist/parse.min.js"&gt;&lt;/script&gt;
      &lt;script src="app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My Parse Server has <strong>Program</strong> class. And I want to retrieve one program named <strong>Any Program</strong>. My <code>app.js</code> file is like this:</p>
  
  <pre><code>$(document).ready(function () {
      var Parse = require('parse');
      Parse.initialize('MY_APP_ID');
      Parse.serverURL = 'https://parseapi.back4app.com/';
  
      var Program = Parse.Object.extend("Program");
      var query = new Parse.Query(Program);
      query.equalTo("name", "Any Program");
      query.find({
        success: function(result) {
          console.log(result);
        },
        error: function(error) {
          alert("Error: " + error.code + " " + error.message);
        }
      });
  });
  </code></pre>
  
  <p>In my browser console, an error occurs:
  <img src="https://i.stack.imgur.com/Fp68V.png"></p>
  
  <p>I followed the documentation here: <a href="http://docs.parseplatform.org/js/guide/" rel="nofollow noreferrer">http://docs.parseplatform.org/js/guide/</a>
  <br>But no luck.</p>