Back

Unable to view bucket files in incognito mode

  • 0
  • Self Hosted
  • General
  • Web
  • Storage
kathelia.dokgu
16 Sep, 2023, 17:23

On my NextJS app, I display a bunch of images and videos uploaded to the storage bucket which has team-based permissions. These are working just fine on normal use, but when I tried to login to my NextJS app from an incognito tab, the images/videos aren't loading. They give me a permission error. The only way I could get the files to show is if I add read permissions to either Any or Guests for permissions. But this means that the files are viewable by the public and you don't have to be logged in to see them, you just have to know the URL. I don't want to do that though and I'd like to keep it so that only members of a team can view them.

TL;DR
If you can't view bucket files in incognito mode, it may be because your appwrite instance is not running on the main domain you're using, requiring third-party cookies. These cookies are blocked in incognito mode by default. To solve this issue, you can enable third-party cookies in incognito mode or ensure that your appwrite instance is running on the main domain.
D5
16 Sep, 2023, 22:45

If your problem is that you login but you still cannot access to the link in incognito, that's because probably your appwrite instance is not running into the main domain you're using, so due to that, appwrite needs using third party cookies, who are blocked in incognito if you have the switch being shown when you open the incognito tab (enabled by default)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more