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 – Itai Shmida Oct 4 '18 at 10:32

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 '18 at 9:59
  • Are you seeing an error on the developer console? – Gaurav Thakur Oct 2 '18 at 10:01
  • Yes. Two errors : – CRK Oct 2 '18 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 '18 at 10:04
  • Have you had a look at this help.salesforce.com/… – Gaurav Thakur Oct 2 '18 at 10:07

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.