I solved the CORS problem by using proxies on emulator, i.e. for
ionic cordova emulate ios -c. However, on real device, when I did
ionic cordova run ios --prod, it still met the CORS problem. In fact,
ionic cordova run ios -c worked on real device, as proxy configs were added.
Any idea will be appreciated!