I am facing this issue in my ionic 4 application http post request fetch after setting all header parameters.
Access to XMLHttpRequest at ‘https://app.api.in/login’ from origin ‘http://localhost:8100’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.
I am stuck with pretty much the same issue. I tried using cordova native http and it worked but I want to use the Angular HttpClient. If the native implementation is working for you go ahead I had no problems there.
CORS is to be resolved through proper setting on the server end.
Zillion articles on this forum and the ionic documentation will explain you
Thanks for your comment.
But i don’t have .net knowledge and api have made on .net.
So i is very hard to fixed.
I any way by ionic header but i used all header in ionic.
Wait Did you fix it. And if so what exactly did you do