i am using IFrame in order to load the URL.
when i try to load the other URL inside iframe and it shows "Access denied " message.
how to handle this issue.
need ur suggestion with example.
regards
gopal.s
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raj BandiPosted May 5, 2013, 12:19 AM
gopal kannanPosted Apr 29, 2013, 11:22 PM
i am waiting to see your article..
regards
gopal.s
Raj BandiPosted Apr 29, 2013, 4:46 AM
Yes partially. URL rewrite cannot make requests on its own, Its just watch for incoming requests to your server and rewrites url format with configured parameters. It doesn't fetch external url content. So you need a reverse proxy to do that.
I'm in the middle of my article how to achieve cross domain communication in an iframe, I'll update in few days,
Kind Regards,
Raj
gopal kannanPosted Apr 29, 2013, 1:50 AM
thanks for ur reply.
i need to load other server url in an iframe.
is it possible to achieve this using URL Rewrite.
need ur suggestions..
regards
gopal.s
Raj BandiPosted Apr 29, 2013, 1:22 AM
What url you are trying to access? are you trying to access iframe content from main page with javascript. If yes, it must be cross domain policy restriction.
Iframe url domain, protocol and port must be same as your main page domain, protocol and port. You cannot access content from different domain/port in iframe. Its a cross domain policy restriction.
Examples
----------------
Main page url : http://www.abc.com/test/page.html
Ifram url : http://www.abc.com/page1.html
Works: Yes
Mainpage url and iframe url domains, port, protocol are same.
---------------------------------------------------------------
Main Page url: http://www.abc.com/test/page.html
iframe Url : http://www.xyz.com/page1.html
Works: No
MainPage url and iframe url domains are different
------------------------------------------------
Main Page url: http://www.abc.com/test/page.html
iframe Url : http://www.abc.com:8080/page1.html
Works: No
MainPage url and iframe url ports are different
------------------------------------------------
Main Page url: http://www.abc.com/test/page.html
iframe Url : https://www.abc.com/page1.html
Works: No
MainPage url and iframe url protocols are different (iframe with https)
Hope this helps.
Cheers,
Raj