I have faced this issue in Sitecore 10.1. Below steps fixed issue for me:
Got to IIS -> Click on Authentication -> Select "Anonymous Authentication" -> Edit -> Select Application pool identity