Open seankang92129 opened 1 month ago
In the deprecated v2 SDK documentation there is an enableCORS option when creating the braintree.setup, is there a way to pass this kind of similar options to the v3 SDK when I instantiate the client?
braintree.client.create({
authorization: 'sandbox_MYSANDBOXTOKENIZATIONKEY'
}, function (clientErr, clientInstance) { }
i also tried to run a sample v3 javascript running on a separate ec2, and I enabled CORS on the express node js server. the page loads, but when I try to generate the nonce, it get the same error.
directly interacting with my nodejs server via a separate stand alone browser, it works
i think I found the culprit -- if I replace the webview_flutter plugin for flutter with a different webview https://pub.dev/packages/webview_all, and point the webview to a separate CORS enabled web site, then the issue above about the null target origin goes away.
General information
Issue description
How to set the origin when the cc hosted fields are inside an iframe of a flutter web application?
braintree_v3_widget.dart.pdf