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.   
Bob, Visualforce pages cannot be accessed without logging in the salesforce, 
According to you requirement you have to create a site and then add that vf page as default page for the site
then whenever you will try to access that vf page, if will open without asking you for logging in.

For the site go for this post

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 site, the VF page has access by the 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.