In my web application, I am dealing with an iframe and I require the ability to acquire its current URL from the parent document. This includes situations where the user navigates within the frame and modifies the original source URL.
The URL is essential for social sharing purposes.
Given that this involves a cross-domain scenario, I do not have control over the child document since it belongs to a remote domain.
While I understand the restrictions of the same-origin policy which restricts access from a parent document to a child one in different domains, I am exploring potential solutions through innovative means - there must be a workaround available.