title: CORS origin issue in codeigniter api
body: <p>i am developing web API in codeigniter 3 without rest server, API is working in postman but when i try to access in mobile site which is developed on (ionic3 &amp; angular4) at the same time it give me following error.</p>
  
  <p>Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.</p>
  
  <p>when i try to login in mobile it give me error in login api..
  <a href="http://www.example.com/xxx/api/users/login" rel="nofollow noreferrer">http://www.example.com/xxx/api/users/login</a></p>
  
  <p>Please help me, if you have solution on it</p>