Monday, 26 August 2013

About Cross Domain policy in iframes

About Cross Domain policy in iframes

I'm having a question regarding the cross-domain policy that applies to
javascript,jquery,ajax, etcetc.
I simply wonder if it's possible just to read data from a loaded iframe
without having to make a workaround.
At the moment, I have a form that I login, after the login the site
redirects me to a new page. All that works and I can see the new page in
the iframe. However when trying to access its elements I get no access
denied but instead I get "undefined".
If I put the direct authenticated and logged in link to the iframe, then I
can normally read the elements even cross-domain. I suppose the iframe
doesn't get the src update after the redirect or something like that.
Any suggestions?
Thanks in advance

No comments:

Post a Comment