Using Visa Checkout in a Frame: Blocked a frame from accessing a cross-origin frame

Solved! Go to solution
mz
Helper

Using Visa Checkout in a Frame: Blocked a frame from accessing a cross-origin frame

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?

1 REPLY 1
API_Products
Visa Developer Support Specialist

Re: Using Visa Checkout in a Frame: Blocked a frame from accessing a cross-origin frame

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




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.