Write some code to check if the logged in user/anonymous user has access to that particular resource he/she is trying to access. Then login with as admin to the repo and try to access the same resource again. Most probably there you would get 403 status code, as the anonymous user might not have access to the page. Here is a similar thread to your problem which should be helpful.