Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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?
Activa la propiedad DomStorageEnabled
webview.Settings.DomStorageEnabled = true;