I have a Visualforce page that is used inside the lightning console app. According to this Salesforce documentation, certain methods from Console Integration Toolkit are permissible in Lightning. However, when I attempt to use the closeTab() method, for instance, I encounter the following error:
iframeinterface.js:1 Uncaught DOMException: Blocked a frame with origin "https://business-enterprise-326-dev-ed.scratch.my.salesforce.com" from accessing a cross-origin frame.
I suspect this error arises because Visualforce pages are served from a different domain. Is there a way to use the Console Integration Toolkit within a Visualforce page rendered in a Lightning console app?