1

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?

3
  • Did you try adding the Visualforce domain to CORS? That may fix your problem.
    – sfdcfox
    Commented Aug 18, 2023 at 18:07
  • @sfdcfox Thanks for the suggestion, unfortunately, it didn't fix the issue
    – ApexAdam
    Commented Aug 18, 2023 at 21:33
  • it is clearly a CORS issue .. are you adding the root domain or subdomain.. be careful Commented Aug 26, 2023 at 19:41

0

You must log in to answer this question.

Browse other questions tagged .