CORS middleware applies a cross-origin policy across an ASP.NET Core app. It is the simplest choice when the board-game API should use the same default policy for its controllers and Minimal API endpoints. section 3.1.1
// ... app.UseCors(); app.UseAuthorization(); // ...
Add `app.UseCors()` in `Program.cs` before `app.UseAuthorization()`. Middleware runs in the order it is added, so placement matters for authorization and endpoints. section 3.1.1
The default policy can allow origins specified by `AllowedOrigins`. Although `app.UseCors("AnyOrigin")` would apply the named policy globally, reserve an all-origins policy for cases that need it; endpoint routing or `[EnableCors]` can target particular endpoints instead. If credentials such as cookies or authorization headers are allowed, the origin cannot be `*`: both client and server must acknowledge credentialed requests and specify an origin. section 3.1.1

