
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
- exclude password field from getDocument
i got a getDocument that lists data from the user (username, password, id.....) so my question is how do i exclude the password so it doesnt get listed out? m...
- Date objects behaving weird
I've programmed an app that uses Date objects. Everything works perfectly in my local environment, but on my hosted version with Vercel, the times of the object...
- Login with google error, Error 400: redi...
Hi, when i login with Oauth2 , using createOAuth2Session( 'google', 'http://localhost:5173/', 'http://localhost:5173/' ); It give...
