
When creating a membership with appwrite teams API, it returns an error as in the screenshot provided. I earlier tried with this it worked on local host. But it doesn't on vercel. Even after updating my redirect url to the vercel endpoint thing doesn't work. How can I solve this error. Attached are screenshots of my error and function. What is the purpose of the callback url anyway if it when I put my vercel endpoint it just throws an error.

You need to add your Vercel domain to Platforms in your Appwrite project

It has *.vercel.app and to my understanding the asterisks means all

So I don't understand why it would fail

Should I specify it explicitly

?

My understanding is that CORS doesn’t support subdomain wildcards

It says that the host name should have a valid path and port. I don't know how to get those

It says that the host name should have a valid path and port. I don't know how to get those

It returns this error Customer Membership 2: AppwriteException [Error]: Invalid url: URL host must be one of: localhost, aw.ablestate.cloud, *.vercel.app at Client.call (/Users/davie/Documents/workspace/autofore/backend/node_modules/node-appwrite/lib/client.js:174:31) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Teams.createMembership (/Users/davie/Documents/workspace/autofore/backend/node_modules/node-appwrite/lib/services/teams.js:271:16) at async createUser (/Users/davie/Documents/workspace/autofore/backend/src/handlers/createUser.js:25:36) { code: 400, type: 'general_argument_invalid', response: { message: 'Invalid url: URL host must be one of: localhost, aw.ablestate.cloud, *.vercel.app', code: 400, type: 'general_argument_invalid', version: '1.3.7' } }

The redirect path has to be one of the platforms you’ve added.

Thanks. I think doing away with the wild card solved it
Recommended threads
- Problems with adding my custom domain
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain api.kondri.lt (CNAME pointing to appwrite.network., also tried fra.cloud.appwrite.io with no luck ) but encountering a ...
- Persistent 401 Unauthorized on all authe...
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options. The Problem: When my React app on localhos...
