#how to upload image in next js without cors error using appwrite

9 messages · Page 1 of 1 (latest)

bright spoke
#

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

fleet flume
#

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?

bright spoke
#

wait let me see

bright spoke
#

where sould i use it exactly

#

i have deploye the code to vercel

fleet flume
#

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

bright spoke
#

is this ok