加载 Paypal 验证码时 WKWebView 为空白

WKWebView is blank when loading a Paypal captcha

用户可以在我们的应用程序中使用 Paypal 付款。 我们在 WKWebView.

里面打开 Paypal link

但这是Paypal登录后的结果

当我检查 WKWebView 时,我在控制台中发现了这 2 个错误:

Refused to load https://www.recaptcha.net/recaptcha/enterprise/... because it does not appear in the frame-ancestors directive of the Content Security Policy.

Failed https://www.recaptcha.net/recaptcha/enterprise/... to load resource: the server responded with a status of 404 ()

我在互联网上没有找到任何解决方法。

谢谢

We open the Paypal link inside a WKWebView.

你不能这样做。来自 the documentation

Do not use a WebView to display PayPal web pages within your application

Your application must not use a WebView or similar custom browser mechanism for display of PayPal web pages. Instead, use an appropriate PayPal SDK to manage the PayPal experience or launch the PayPal web page within the system browser or an approved browser-view mechanism such as Safari View Controller on iOS or Chrome Custom Tabs on Android.