title: IONIC 1 XMLHttpRequest cannot load Response for preflight has invalid HTTP status code 405
body: <p>I can not solve this error.
  I try with:</p>
  
  <p><a href="https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi" rel="nofollow noreferrer">https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi</a></p>
  
  <p><a href="https://github.com/apache/cordova-plugin-whitelist" rel="nofollow noreferrer">https://github.com/apache/cordova-plugin-whitelist</a></p>
  
  <p>adding headers </p>
  
  <ul>
  <li>Access-Control-Allow-Headers : "*"</li>
  <li>Access-Control-Allow-Methods : "GET, POST, OPTIONS, PUT, PATCH, DELETE"</li>
  <li>Access-Control-Allow-Origin : "*"</li>
  </ul>
  
  <p>And It did not work.</p>
  
  <p>Please help</p>
  
  <p><a href="https://i.stack.imgur.com/p0eNO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p0eNO.png" alt="enter image description here"></a></p>