Enable CORS at Discourse Forum

Hello everyone. I installed Discourse some time ago, and want to fetch some posts from it to other web project. I tried solutions people typed here at others similar topics, but theirs solutions didnt work to me. Tell me please, is there are normal working documentation to enable CORS for Discourse step by step? Thank you.