This question already has an answer here:
- How do I get the current location of an iframe? 9 answers
I have an iframe in my web app and I need to get its current url from the parent document (also when the user navigates the frame and change the original source url).
Url is needed simply to social share it.
As a cross-domain scenario, I don't own the child document (its a remote domain).
I am aware of the same-origin-policy that prevents cross domain access from parent document to child one, but I'm looking for a solution by any creative mean possible - there has to be a way around.