have try to user @angular/http to send my api but I got the 401 polyfills error so I change it to @ionic-native/http , but then I got yet another error which is :Error: advanced-http value must be string" so I log my header and it was empty???
That looks like a CORS issue that really needs to be fixed on the server, but you shouldnāt be using raw HTTP in any event, and especially not when doing security stuff. You should be using HTTPS, with real hostnames and real certificates (no numeric IP addresses).
alright how can I bypass CORS , without change the backend because I can not change it I have also try to test on my device but the same thing keep on happening
headers should be an object whose values are stringsā¦
when u assign headers as {headers:this.getMcsHeaders()}, you are assigning object as header value that is throwing the error.
Try
this.http.get(this.mcs.mobileBackend.getCustomCodeUrl(mcsConfig.environment + ā_api_care/my/profileā), {},this.getMcsHeaders())