I am usinf ionic4 for my application development.
The error bellow is happening in production apk build.
Access to XMLHttpRequest
from origin ‘http://localhost’ has been blocked by CORS policy: Request header field x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response.