If an action within a controller with [Authorize] should be accessible without authorization, you can use the [_________] attribute.

  • [AllowAnonymous]
  • [Unsecured]
  • [IgnoreAuthorization]
  • [PublicAccess]
If an action within a controller with [Authorize] should be accessible without authorization, you can use the [AllowAnonymous] attribute. This attribute allows you to exempt specific actions from the global authorization policy, making them accessible to all users, even if other parts of the controller require authorization.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *