.NET CORS setup is not working in some endpooin The api project on .net 8 already has the cors setup in Program.cs like this