I have an issue embedding a visualforce page into a lightning component then show the component into a community page available only for a profile. It can't load the resource so the iframe is blank. I tested it into a lightning app and it all works correctly. The problem come when showing the component into the community page. I tried to change the clicjack options but nothing changes. Someone can help?

  • please add the code that you are working on Oct 4, 2018 at 10:32

1 Answer 1


Have you configured your component to be used in community? https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_config_for_builder.htm#components_config_for_builder

  • the component shows correctly into the community (it has also other parts, not only the iframe). The only problem is the iframe that is not showing.
    – CRK
    Oct 2, 2018 at 9:59
  • Are you seeing an error on the developer console? Oct 2, 2018 at 10:01
  • Yes. Two errors :
    – CRK
    Oct 2, 2018 at 10:03
  • the first one is : Failed to load resources: the server responded with a status of 401 (unauthorized) on the visualforce page source. The other error is Refused ti display the VF page in a frame because it set X Frame Options to deny
    – CRK
    Oct 2, 2018 at 10:04
  • Have you had a look at this help.salesforce.com/… Oct 2, 2018 at 10:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .