title: Response for preflight has invalid HTTP status code 401 preflight OPTION call error
body: <p>I'm working with Ionic 3 framework project and have encountered one error whenever i m trying to send my data to the server by <code>POST</code> method (as <code>postAsync</code>), this is related to the OPTION call as the error says:</p>
  
  <blockquote>
    <p>Response for preflight has invalid HTTP status code 401</p>
  </blockquote>
  
  <p>I don't know how to solve this error, as I have added <code>CORS</code> extension to my browser, still I'm facing this error issue. </p>
  
  <ol>
  <li><p>Is there any solution to solve this issue from browser side like from chrome devtools as i can filter it from network by <code>-mode:OPTIONS</code> but at console I'm having the same error.</p></li>
  <li><p>If this not possible, then how to solve this error ?</p></li>
  </ol>
  
  <p>Code:</p>
  
  <pre><code>this.WooCommerce.postAsync('customers', customerData).then( (data) =&gt; {...}
  </code></pre>
  
  <p>More error messages:</p>
  
  <blockquote>
    <p>polyfills.js:3 OPTIONS tusharstar.freesite.host/wc-api/v3/…... 401
    (Unauthorized) (anonymous) @ polyfills.js:3 ... (index):1 Failed to
    load tusharstar.freesite.host/wc-api/v3/…) Response for preflight has
    invalid HTTP status code 401 bluebird.js:1545 Unhandled rejection
    TypeError: Failed to fetch</p>
  </blockquote>