https://medium.com/@mohantaankit2002/fixing-cors-policy-errors-in-nestjs-when-consuming-apis-in-the-frontend-359de159068a