For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to bypass the 'Validation of Cookie Usage' error when using a SharinPix component in an Iframe?

Description of the error

Traditionally, the Iframe syntax used to embed a SharinPix component was as follows:

<apex:page standardController="Account" extensions="GetToken">    
    <iframe id="iframeId" class="sharinpix-iframe" src="https://app.sharinpix.com/?token={! SharinPixToken }"></iframe>    
</apex:page>

However, some devices encountered a cookie-based error as depicted in the image below:

Solution: Use of the postMessage method

To overcome this issue, SharinPix adopted the use of the postMesssage method. For more detailed information about how to use the postMessage method to bypass the error, click on the link that follows: