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
Bob DeRosierBob DeRosier 

VisualForce Page displays in iFrame but requires login when directly viewed

I have a visualforce page that is presented in an iframe  in WordPress and displays as I expect.  When I take the same URL, SalesForce asks me for a login.    I have another page that will not display in an iFrame and also requires a login when I type the URL in a browser.   How do I set a VF page to be publicly viewable ?     I have a test page with no content, a  minimal controller that still requires a login.   
Abhi_TripathiAbhi_Tripathi
Bob, Visualforce pages cannot be accessed without logging in the salesforce, 
According to you requirement you have to create a force.com site and then add that vf page as default page for the force.com site
then whenever you will try to access that vf page, if will open without asking you for logging in.

For the force.com site go for this post 
https://developer.salesforce.com/page/An_Introduction_to_Force.com_Sites


Abhi
if this answer helped you then Mark this answer as right for the help of others
Bob DeRosierBob DeRosier
The VF page is already setup on a separate force.com site, the VF page has access by the force.com site profile.  It shows in the list "VisualForce Page Access".  I have another page which works without login, so the idea that is needs to be the default doesn't seem to apply.