#[SOLVED] getFileDownload / View / Preview error 401 (frontend localhost + appwrite self-hosting)

6 messages · Page 1 of 1 (latest)

plucky prawn
#

<Please see my attached picture for more details>
My bucket had CRUD permission setting for team:admin (see picture), and I had joined team:admin, but I cannot getFileDownload / View / Preview, It throw 401 error.
I'm currently dev frontend at localhost and appwrite self-hosting v1.4.2 on my VPS.
Thanks for any help!

warped surge
#

You might be facing a 3rd party cookie problem.

One thing you can do more is up update your browser to enable 3rd party cookies.

In production, your Appwrite endpoint should be a subdomain of your app. See https://appwrite.io/docs/custom-domains

plucky prawn
#

I getFileDownload().href and attach it to <img src="<href>">
I'm using EDGE on Mac with default configuration
I currently don't have a domain yet and connect to appwrite by IP, is it ok?

warped surge
plucky prawn
#

I'm now understand, Thank you!