Skip to main content
Mark Cuban a posé une question dans #Force com Sites Site com
I am trying to display Napili community in a iframe on external domain but I am hitting the below error:

 

Load denied by X-Frame-Options: https://tryeverrything-developer-edition.na50.force.com/s/ does not permit cross-origin framing.

How to display Napili community in iframe on external website?

I have enabled the framing by any page as shown in the below screenshot but still it is not working.

User-added image

Are there other settings to enable the iframing of Napili community?

 
1 réponse
  1. 21 sept. 2018, 13:17
    Not sure if this helps.

    Use CORS to Access Salesforce Resources from Web Browsers

    Cross-Origin Resource Sharing (CORS) enables web browsers to request resources from origins other than their own (cross-origin). For example, using CORS, JavaScript code at https://www.example.com could request a resource from https://www.salesforce.com. To access supported Salesforce APIs, Apex REST resources, and Lightning Out from JavaScript code in a web browser, add the origin serving the code to a Salesforce CORS whitelist.

    https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/extend_code_cors.htm
0/9000