function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MaximeMaxime 

Dialog between Window.open and visualforce

Hello,

I open a popup inside my visualforce page to complete an oauth authentification. I have the following error : 
DOMException: Blocked a frame with origin "**.vf.force.com" from accessing a cross-origin frame.
I decided to use postMessage (https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage) to send data from my window.open to the visualforce page but i receive no data.

Can i implemente postMessage with visualforce ?
 
VinayVinay (Salesforce Developers) 
Hi Maxime,

Check similar issue below that can help you.

https://developer.salesforce.com/forums/?id=9062I000000XouhQAC

Thanks,