Search Console sitemap html warning

You have disabled anonymous access; a login is required.

When accessing the sitemap, it’s being redirected to the login page.