I need help with saving information from my Angular application into a database. I am utilizing the HttpClient
to send data via POST requests to the RestAPI. The request is being sent, however, the API does not receive the data and instead returns a response code:500
.
Upon checking the console logs, I can confirm that the data is indeed being sent, but for unknown reasons, the RestAPI is unable to retrieve it.
Interestingly, when I tested sending a POST request using Postman, it worked without any issues. This leads me to believe that there may not be an issue with the backend after all.