How to solve cross origin error in angular 8

Access to XMLHttpRequest at http://admin/api/2020-07/products.json’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.