After successfully testing the endpoint using Insomnia, I encountered an issue when trying to establish a connection with the backend from the client side. The connection process between the client and server is implemented as follows:
const uri = `${basePath}/${baseVersion}/sign-up`;
const params = {
method: "POST",
body: JSON.stringify(data),
header: {
"Content-Type": "application/json"
}
};
Upon inspecting the params
object in the console, this is the content inside it:
To clarify, there doesn't seem to be a CORS issue since I am utilizing a Google Chrome extension for it.
Below is the response obtained from the fetch operation: