title: XMLHttpRequest cannot load and Response for preflight has invalid HTTP status code 405
body: <p>I am using ionic framework and angularjs I use chrome for viewing my logs but here i am doing a login page I am trying to post the user entered data to serve but i am getting this error like .</p>
  
  <pre><code> OPTIONS http://aflaree.com/qrcodeservice/Service1.svc/login 
  </code></pre>
  
  <p>and this one is next error <code>XMLHttpRequest cannot load  http://aflaree.com/qrcodeservice/Service1.svc/login Response for preflight has invalid HTTP status code 405</code>
     after reading some blog i figure there is a CORS extention from from which allows ajax request i tried that also but i am not able to find why this two error is appearing. here is my code</p>
  
  <p><a href="https://plnkr.co/edit/Dz0aFsLqoQcnCxht00z3?p=preview">https://plnkr.co/edit/Dz0aFsLqoQcnCxht00z3?p=preview</a></p>
  
  <p>my code work fine in device but I am getting error in chrome if any one knows why please help me</p>