function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ankit Saraiya 13Ankit Saraiya 13 

<iframe> in Visualforce page - Cross domain

Hi.. I am using <iframe> tag in my VF page and want to post doubts:

1) I am using src as bucket url - "https://bucketeer-8c4ead3e-9208-43cb-bb6c-f4a5cc3b597e.s3.amazonaws.com/......html/". I have set the X-Frame-Options to "Allow" for my bucket. Now when I use the above path as src, instead of showing the content of .html file it is directly getting downloaded and when I see the console, I find below:

"Resource interpreted as Document but transferred with MIME type application/octet-stream in iframe"

2) Since I was not able to get any positive solution on 1, I was trying to implement "http://jsfiddle.net/Y9beh/", however same doesnt work in my Salesforce instance. 

Can anybody please comment on above mentioned points?
pranab khatuapranab khatua
<apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/>

You can use this tag and put src url another vf page link like "/apex/testvf"