Nikunj Satasiya

Nikunj Satasiya

  • 193
  • 10k
  • 3.6m

How to Add [AllowAnonymous] for All Controllers in WEB API?

Apr 6 2021 6:03 AM
Hi
 
Can anyone help me to Add [AllowAnonymous] for All Controllers in WEB API without using any filter or manually add [AllowAnonymous] attribute for each controller or action method?
 
Is there any Global way to archive this requirement in web API?
 
Thank you.  

Answers (4)