How to return not found in Program.cs ASP.Net core 6
I've tried to improve my site's security, & one of things I've tried is when a user is not admin & wants to access admin page, system returns NotFound. This makes impossible to a hacker to know your admin page.…