File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID]
I'm trying to access files in my web app. The requested files are coming from the URL in the given format above which is exposing my projectId and Bucket id. Is this a good idea to expose them. If not how can I avoid them without using any proxy.
It's fine
You can use headers (X-Appwrite-Project
) if you don't like the Project ID in the URL itself.
Mind you that those headers can be easily checked via just a few clicks to Dev tools > Network tab or via a MITM Proxy.
Recommended threads
- Incorporate appwrite with spring boot
I am trying to upload files from a Spring boot app to appwrite. I've checked the SDK on maven but it seems to be for Android. Do I have to call Appwrite's REST ...
- User is not authorized to read collectio...
When i tried to make a read call to my db it always returns that my user is not authorized to perform such action am i doing something wrong?
- How to cron function with specified end ...
I have function built with hono. support like / , /data, /data/2222. I want to schedule triggger for specific event like /data. orrr event better /data/2222 . i...