• Singh_Indupal
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi All, 

I have a requirement where i need to get the id of a field in case layout using VF Page as sidebar component in the service console.
I have created a VF page and added a javascript in it.
Below is the javascript code:
var fId = parent.document.getElementById('frameId');
frameId is the Id of the case layout IFRAME.

In the browser console i am getting below error
Blocked a frame with origin "https://****.visual.force.com" from accessing a cross-origin frame.

I have checked and found out this related to "Same Origin Policy"
http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy

How can we overcome this in VF Page??