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
TL;DR
TL;DR: The user is looking for help on how to upload an image in Next.js without encountering a CORS error using Appwrite. They mention deploying the code to Vercel and inquire about where to add the Appwrite console settings. The solution provided is to add the web platform in the Appwrite console with the frontend domain as the host.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