How to solve CORS policy problem for Strapi?

@peteresteris is your code somewhere public I can take a look?