CORS Error, .NET 7 and ReactJS

Then this suggests a fault in your code in react is fetching the relevant URLs instead of redirecting the user to the URL’s