auto height of iframe for a cross domain url
I am using CQ5.6.1 ,In a iframe I wanted to auto height an external URL content (say http://rediffmail.com) in CQ5,but found that cross scripting issue is coming up.
when I am doing an javascript manuplation.I see it throws error permission denied to access property 'document' iframe
So how could i solve this problem.
I saw one of the option as X-Frame-Options, is there any other better method.