I was trying to access the user their own document, which was made using document security and that is working perfectly.
However, now I want to fetch the data, but it only gives me 401 errors.. Using the cookies doesn't work, creating a JWT doesn't work and the only thing that does work is using a X-Appwrite-Key, which doesn't make sense. Any help is appreciated.
Summary
The user is facing unauthorized access issues while trying to fetch data from a completely public collection. The user has tried using cookies and JWT but it only works when using X-Appwrite-Key. The solution is to check if there is a relationship in the collection that the user does not have access to. Once that is resolved, the unauthorized error should be resolved. Additionally, the user mentions that Postman does not work for fetching.