Visualforce page cannot be accessed from guest user

communityforce.com-sitesvisualforce

I am trying to access a Visualforce page in a community from a guest user, and I cannot see it. I am trying just with a simple hello world page, to remove the ipothesis of object-related issues.
I assigned the visualforce page to the profile but still, it won't load at all, just a blank page. Any idea?

When i open the console i see only these 2 errors :

DevTools failed to load source map: Could not load content for preview.salesforce-communities.com/auraFW/javascript/1643424164816/aura_prod.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE


DevTools failed to load source map: Could not load content for /ui-sfdc-javascript-impl/source/RecordGVP.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

This is what they should see : enter image description here

This is what they see : enter image description here

I added the visualfoce page in the profile that is listed here "test3 profile":
enter image description here

Best Answer

I was finally able to fix this issue. If you are using some custom object, giving read permission to it and the fields was not enough for me because the object had private sharing model. I had to create a sharing rule for this object and the guest user profile. Then to be able to access the visualforce page, i just had to do the same things but in production. Somehow the sandbox didn't let me access the visualforce page as guest.

This finally solved the issue.

Related Topic