1

I have an LWC which contains an image. The image source is coming from a URL field on the object. The images are being stored as files.

For some reason the image is not rendering for guest users when viewing in incognito.

I have confirmed that the guest user has read access to the object and the field. Let guest users view asset files on public and login pages is enabled. How can I allow the guest user to view these images?

3
  • Is the LWC relying on an apex class? Did you give the guest profile access to the apex class? Jun 22, 2021 at 12:45
  • Yes. The guest user has access to the class. I can see that the image url I being returned from the apex method as expected. I’m thinking this might have something to do with access to the ContentAsset where the image is stored.
    – Jordan
    Jun 22, 2021 at 16:39
  • Have you confirmed whether whatever you're getting from the server is accurately returned in your LWC (ex. URL is correct)? Jun 24, 2021 at 18:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.