Hi @Meisam Dehghan ,
The [AllowAnonymous] won't work here, since <AuthorizeView> in layout page has distinguished between authorized users and unauthorized users, it even doesn't reach [AllowAnonymous] in specify page.
So, if you want to exclude some pages from the authentication requirement, one approach is to have a same layout without AuthorizeView, and make those page inherit this layout.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Jiadong Meng