Android WebView shows blank page on checkout url

alakbar
Visitor
1 0 3

Hi, I'm building an android app using mobile buy sdk. I want to implement checkout through webview, but when I try loading returned url the webview shows blank page and I see these warnings in logcat:

 

Refused to frame 'https://checkout.shopifycs.com/' because it violates the following Content Security Policy directive: "child-src c.paypal.com cdn.shopify.com cdn.shopifycdn.net". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.
", source: https://checkout.shopifycs.com/ (0)

 

The link works fine when I use default browser instead of webview. Has anyone faced such an issue? How can I solve it?

Reply 1 (1)

velzher
Shopify Partner
2 0 0

Activa la propiedad DomStorageEnabled

webview.Settings.DomStorageEnabled = true;