
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
- Adding custom domain to Appwrite project
My app is hosted on Vercel on domain todo.velleb.com. On PC, the OAuth logins like GitHub, Discord and Google work and create the account and log in. On mobile ...
- #support
<#1072905050399191082> any help on that?
- Early Validation of Password Reset Token...
Hey there, I'm dealing with an issue with password reset flow and wondering how you handle this. Right now, when someone clicks an expired/already-used reset ...
