CORS issue because ionic is running on ionic://localhost on mobile device

I have an issue when using the Google Drive API on a mobile device (iOS). I am using the GooglePlus native plugin to obtain an access token.

However when I make the actual call it is blocked by CORS of the GoogleAPI because ionic://localhost cannot be added as a trusted domain in the GoogleAPI.

I there anyone who maybe has a solution to this problem? Like is it possible to just use the ‘http’ schema instead of ‘ionic’ on mobile?

After some more investigation I discovered that this issue can be tackled thanks to So it is possible to revert to the ‘http’ scheme instead of ‘ionic’.