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
Karina ChangKarina Chang 

Authorization Required

Hi,

I have created a Visualforce page that shows all records from a Custom Object.This page is associated with a Force.com site page.  
When I attempt to open the link of the Force.com site... I get an "Authorization Required" page. Is there some sort of permission that I might be missing?

Thanks!
Rashi Garg 12Rashi Garg 12
Hi Karina,

Are you able to open the same page from the org directly(without using site URL)?. If yes then it is permission issue.

Thanks,
Rashi
Karina ChangKarina Chang
No, I'm not... When I click on <View> or <Preview as Admin> from the Sites page on SFDC... I still see the "Authorization Required" page.
GauravGargGauravGarg

Hi Karina,

Please add page access permission for your profile. To provide permission please follow below steps:
1. Go to Setup --> Visualforce page
2. Click on Security next to your VF page.
3. Add profiles you want to give access.
4. Hit save

Hope this helps !!!
 

Thanks,
Gaurav

Rashi Garg 12Rashi Garg 12
Hi Karina,

For providing access to site profiles, follow below steps
1. Go to setup > Sites 
2. Click on Site Label
3. Click Public Access Setting Button
4. Scroll down to Enable Visualforce Page Access
5. Click on edit and set permission for your page.

Please let me know if you still see any issue.
 
Thanks,
Rashi
Karina ChangKarina Chang
Hi Rashi... the page was already in there and I still get the "Authorization Required" page. 
Harish RamachandruniHarish Ramachandruni
Hi,

Give access to apex class   in profile .

1. Go to setup > Sites 
2. Click on Site Label
3. Click Public Access Setting Button
4. Scroll down to Enable apex class  Access


Regards ,
Harish.R.