Request Strapi's REST API behind a CDN

But how do we prevent cors errors from occuring when using this method?