Serve Ionic 5 Cordova application over HTTPS


Is there a way to provide Ionic 5 (Cordova) application over https ?

I work with stripe and I need to implement Stripe.js.

When i serve my application with :
ionic serve --prod
I have the following warning :

v3:1 You may test your Stripe.js integration over HTTP. However, live Stripe.js integrations must use HTTPS.

Is there a way to serve a Ionic 5 with cordova application in order to use Stripe.js ?


As far as I know it’s not possible to use HTTPS. There’s a thread with useful details in the Ionic forums about why this isn’t a viable approach.

However, Stripe.js specifically allows file://, ionic://, and httpsionic:// protocols, so using one of those should allow your app to work in production without issue.

Answered By – Justin Michael

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published