Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access/Permision Denied using Iframe on a different domain

Status
Not open for further replies.

okiiyama

IS-IT--Management
Joined
Jan 3, 2003
Messages
269
Location
US
I'm getting an Access Denied or Permission Denied error.

What I'm doing:
Iframe.cfm is located at this has an Iframe tag:
<iframe.... src="
Default.cfm is located at This is the src for the iframe.

Once default.cfm loads it tries to resize the height of the iframe. When Iframe.cfm is on the same domain, this works fine. When its on a different domain, this doesn't work. Is there anything I can do about this?
 
Is there anything I can do about this

If your permission is denied then I would guess the answer is no.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
You are asking if there is a way that a script from another website can alter the appearance of your website hosted on your own website.

The answer is, of course, no. This is to prevent cross site scripting. It's purely a security restriction present in all the modern browsers. The solution might be to use a proxy (server-side on your domain) to request the src of the iframe from.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top