I am running on-Prem Sharepoint 2013 and writing a web application that will access SharePoint lists using CSOM.
I am using Claims Authentication and have Anonymous Access allowed for the web app.
Here are the first few line of CSOM:
Dim ouritems As ListItemCollection
Using cc As New ClientContext(siteURL)
Dim ourList As List = cc.Web.Lists.GetByTitle(listTitle)
Everything is working just fine.
I now turn Anonymous Access off.
My ExecuteQuery (the first access to SharePoint in the application) now fails with an exception: Too many redirections were attempted.
Can anyone explain the connection between turning of Anonymous Access and the exception?