Fede_Original post
Rank 2: Process
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:
JSON
{"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:
Summary
Developers experiencing issues with custom domain setup in Appwrite cloud. After setting up a custom domain on aruba.com, file views stopped working correctly. When attempting to view images in buckets using the custom domain, a 401 error is returned, stating the current user is unauthorized. The issue seems to be related to the security bucket configuration not recognizing the custom domain.