React app doesn’t display asp.net databse data, using Cors to access them (tutorial of Neil Cummings on REACT)
React front is on 3000 and my as.net backend on 5000. React part has product definition and data fetching from localhost:5000/api and accesing data by prevState in AddProduct function. Based on the tutorial, I have cors to program.cs but I cannot make it work. When running the application, I get This localhost page can’t be found error 401.