title: AngularJS - how to disable OPTION request?
body: <p>I noticed that my Angular is creating OPTIONS request also before each POST request.</p>
  
  <p>I'm using custom API Service for HTTP request handling.</p>
  
  <pre><code>app.service('ApiService', function ($http) {
  
  /**
   * Process remote POST request to give URL with given params
   * @param {String} url
   * @param {String} POST params
   * @return {JSON}  response from server
   */
  this.doHttpRequest = function (type, url, params) {
      return $http({
          method: type,
          url: url,
          data: params,
          timeout: 5000,
          headers: {
              "Content-Type": "application/json",
          }
      });
  }
  
  }); 
  </code></pre>
  
  <p><strong>Question is:</strong></p>
  
  <p>How can i disable it (which config values put where)?</p>
  
  <p>Is OPTIONS good for something? 
  I think that is it something like "Handshake between 2 servers". </p>
  
  <p><strong>Angular version: 1.2.15</strong></p>
  
  <p>Thanks for any advice. </p>