WP REST API and Access-Control-Allow-Origin
In one of my project I use a Wordpress REST Api. When I was enabled cache by WP Super Cache plugin I have an error now:
XMLHttpRequest cannot load http://api.mydomain.com/wp-json/wp/v1/posts. Origin http://mydomaintwo.com is not allowed by Access-Control-Allow-Origin.
How can I fix it?