I'm calling Visa Checkout from a frame. My code works fine when I test it from a normal page, but I get the following exception when I run the page from a frame.
DOMException: Blocked a frame with origin "https://mydomain.com" from accessing a cross-origin frame.
at u (https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:8...)
Being able to run the web SDK from a frame is important because this is the way to integrate web pages from Facebook Messenger.
Any ideas?
Solved! Go to Solution
Hello,
Thanks for your inquiry. The issue does not appear to be caused by the VCO not functioning appropriately, but it appears to be an issue with IFrames, itself. This is not something that we can comment on directly, however, there are several pages regarding the development for Facebook applications, and messenger applications that discuss the issue and a way around the security limitations. You can find information about this issue if you do a Google search, and specifically looking for sites that specifically relate to the development for Facebook.
Thank you,
Diana