You need to sign in to do that
Don't have an account?

iFrame VF page into a site
I have developed a VF page that I would like to frame into a standard html page on a webserver. If I am logged into SF in another tab, everything works great.... but if I logout and try to go directly to my page with the iFrame... I get a blank white box with this source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <script> var escapedHash = ''; var url = 'https://login.salesforce.com/?ec=302&startURL=%2Fvisualforce%2Fsession%3Furl%3Dhttps%253A%252F%252Fc.na7.visual.force.com%252Fapex%252FChatter_Page'; if (window.location.hash) { escapedHash = '%23' + window.location.hash.slice(1); } if (window.location.replace){ window.location.replace(url + escapedHash); } else {; window.location.href = url + escapedHash; } </script> </head> </html>
Which makes it look like the login page should be appearing. Also, if I paste the URL variable into my browser, everything works fine.
The page you're embedding may assume it's the topmost window. Are there any JavaScript errors that are preventing the login page from loading?
No javascript errors.
IE gives this in the window:
This content cannot be displayed in a frame
To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
Here's the basic html:
Hi, create a site using salesforce sites in your org. Make it public. Once it is made public, give that url to the iframe src in html file you are placing on the server.