How can I fetch the content of a post of my wordpress domain from an other domain?

editing the .htaccess file on wp.com with :

Header add Access-Control-Allow-Origin: "https://js.com"
Header add Access-Control-Allow-Methods: "GET"
Header add Access-Control-Allow-Headers: "Upgrade-Insecure-Requests"

works