Hi, I realized that after setting up a custom domain for appwrite, the file views no longer work.
I use appwrite cloud and a domain on aruba.com.
I set the cname and confirmed on appwrite console, all ok, the rest of the functionality works fine.
However, when I try to open an image view from a bucket, using cloud.appwrite.io I can see it, using my domain I get:
{"message":"The current user is not authorized to perform the requested action.","code":401,"type":"user_unauthorized","version":"1.6.0"}
this work fine:
https://cloud.appwrite.io/v1/storage/buckets/6XXXXXXX12f/files/66XXXXXX56f/view?project=66XXXXX
this not
https://backend.mydomain./v1/storage/buckets/6XXXXXXX12f/files/66XXXXXX56f/view?project=66XXXXX
Anyway, this is the security bucket configuration:
I tried opening the url from both the web console and the web sdk. Same problem.
Recommended threads
- TLS provisioning failure for custom doma...
Hi Appwrite team, we’re using Appwrite Sites and TLS provisioning for our custom domain fails. Domain: somnara.app Error: Failed to create TLS subscription –...
- Functions Problem
Whenever I run my AI Generate through Appwrite Functions, I am getting this Call Stack AIService.generateServer (src\services\ai\gemini.ts) next (<native>) ...
- Frequent 500 Internal Server Errors - Pr...
PROJECT ID: 6951f2xxxxx1ee9e750a REGION: Singapore (sgp.cloud.appwrite.io) PLAN: Pro Our production application experiences **500 Internal Server Errors** mult...