
how to upload image in next js without cors error using appwrite. I am sending image via jsx element but now in production i want to create a new api route can anyone help me

If yhe action is done on the client side of nextjs then you'll need to add your app URL as Web platfrom in the Appwrite console

Did you did that?

wait let me see

where sould i use it exactly

i have deploye the code to vercel

In the console in the overview page. You'll see an option to add platform. Add web and in the host put the frontend domain

Appwrite console

is this ok

Yes
Recommended threads
- Appwrite Fra Cloud Custom Domains Issue
Iām trying to configure my custom domain appwrite.qnarweb.com (CNAME pointing to fra.cloud.appwrite.io with Cloudflare proxy disabled) but encountering a TLS ce...
- Appwrite service :: getCurrentUser :: Us...
Getting this error while creating a react app can someone please help me solve the error
- Storage & Database is not allowing.
Storage & Database is not allowing to CRUD after i have logged in ? Using web SDK with next.js without any SSR or node-sdk.
