Mashup issues with cross-domain (X-Frame) communication
Learn about the most commonly encountered issues with communication between your mashup and the host page, and discover the ways to address them.
Condition
The communication between the gadget and the host is broken, which results in problems with resizing or loading.
Solution
If the gadget is not responding to the host page messages, which causes issues with resizing, ensure that the host page domain is added to the allow list of the application.
For more information about adding the URL of your page to the allow list, see Creating a mashup.Use the
getGadgetData()
andsetGadgetData()
functions to communicate with the gadget.To ensure a successful transfer of data from the mashup to the host, in the website host page, add the
data-pega-event-oncustom
attribute in the mashup code snippet with a JavaScript callback. In the mashup, use the JavaScript callback to send messages to the host (UserWorkForm rule).
Previous topic Code changes require reloading Next topic Mashup issues with collapsible controls