SyntaxFix
Write A Post
Hire A Developer
Questions
In asp.net core, If your api controller doesn't have annotation called [AllowAnonymous], add it to above your controller name like
[AllowAnonymous]
[ApiController] [Route("api/")] [AllowAnonymous] public class TestController : ControllerBase