title: 405 Error (Method Not Allowed) on jQuery .ajax() POST
body: <p>I'm getting a 405 (METHOD NOT ALLOWED) on a post request. I know that jsonp only works for GET requests, and that I most likely need to enable CORS. Is there a way to enable CORS through my javascript file? Or any way that doesn't involve creating a separate server side bridge? Here is the code for the ajax request:</p>
  
  <pre><code>function getData(){
      var myUrl = 'http://text-processing.com/api/sentiment/';
      var searchTerm = "happy";
  
      $.ajax({
          url: myUrl,
          type: 'POST',
          data: { 'text' : searchTerm },
          dataType: 'jsonP',
          error: function(msg) {
              console.log(msg);
          },
          success: function(response){
              console.log("it worked");
              console.log(response);
          }
       });
  }
  getData();
  </code></pre>