Security concerns with using Stripe checkout over Cordova

后端 未结 2 1905
猫巷女王i
猫巷女王i 2021-02-07 13:02

I\'m looking into using Stripe.js for payment processing in a mobile web application wrapped in Cordova. According to the Stripe documentation all checkout pages should be serv

2条回答
  •  梦如初夏
    2021-02-07 13:44

    I'm an engineer at Stripe.

    Cordova/PhoneGap isn't a platform we actively support with Stripe.js, but after talking it over with the team, we have two suggestions for how to mitigate potential vulnerabilities:

    1. Configure your Domain Whitelist sensibly, to limit the possibility of other scripts maliciously sending payment data to an untrusted third party. You should only need to add https://api.stripe.com to support communicating with Stripe.
    2. Always load the latest version of Stripe.js from our servers, per the Stripe.js documentation. This will ensure that you're always up-to-date with any bugfixes and patches we add to Stripe.js

    Beyond that, I believe your exposure is similar to using Stripe.js in a normal webpage, loaded in-browser.

    (I should note that I assume you're using Stripe.js and not Stripe Checkout—the latter would require the https://checkout.stripe.com domain to be added to the domain whitelist, as well.)

提交回复
热议问题