Thank you for your reply. Sorry for not being clear enough in my previous message.
I’m using Discourse hosted instance and going to embed Discourse to my website, and when I try to get contentDoument object of the iframe of embedded Discourse, I found the cross origin limit. In admin setting page, I noticed there is the “cors origins” setting as shown in the topic picture. Then I add my testing origin url, but not worked. And I noticed the tip that is The DISCOURSE_ENABLE_CORS env variable must be set to true to enable CORS. However, I can’t find where to set DISCOURSE_ENABLE_CORS in admin settings.
I want to know how to set DISCOURSE_ENABLE_CORS, or if my cross-domain configuration is not working, is it related to this setting.