Next JS 14 CORS problem when post data directly inside a client component
I have a client component which is a modal for login. i need to send the data to the backend server via a post request very simply what I’ve done so far is like below:
I have a client component which is a modal for login. i need to send the data to the backend server via a post request very simply what I’ve done so far is like below: