I have set the user read only permission for my bucket. It is working on mac and android for my vue app. However, it doesn't work on IOS. I got an 401 error saying the current user is not authorized to perform the requested action. Not really sure how to solve this issue.
This is a website?
Are you using cloud or self-hosted?
I am using appwrite cloud.
Are you sure permissions are set correctly?
I believe so. Because I have set user read only permission for the bucket. On Mac and android when visit my app after they are authenticated using createEmailSession(), users are able to download the file from the bucket. However, when users access my app from IOS device, it shows users are not authorized to download. It looks like the sdk does not grab the session data from the client, because when I add bucket policy with guest access, users are able to download the file then
I assume you are also creating a session with createEmailSession() in iOS?
And is this a website? Or an app?
It is an web application using Nuxt 3 as the frontend. And yes, I am using createEmailSession() in IOS.
So this is the same codebase between iOS and Android/Desktop?
Yes, it is same. That's why I found it really real wired.
probably a 3rd party cookie problem. do you have a custom domain configured?
I don't think so. My web app is deployed on render.com. And I did not add any custom domain name.
Then you will need to be sure third party cookies are allowed in your browser
for more info, see https://appwrite.io/docs/advanced/platform/custom-domains
Thank you @Steven @D5. I think that might be the cause. I will give it try.
Recommended threads
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...