function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deter Dangler 23Deter Dangler 23 

How to display Napili community in iframe on external website?

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.
User-added image

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?
 
Lalit JainLalit Jain
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