K
K
Kentavr162021-05-30 13:42:17
Mongoose
Kentavr16, 2021-05-30 13:42:17

Why does the server receive an empty value?

After submitting the form data to the server, an empty object is stored in the database. API checked by plstman - when sending json, everything in the database is saved correctly. In the developer console, it is indicated in the header of the post request that the data type is html text, maybe this is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kentavr16, 2021-05-30
@Kentavr16

The issue was resolved by looking at the options. Too bad I didn't understand what the problem was. . . .

D
Denis Masson, 2021-06-02
@pumbasl

Send data from the form in JSON format, and receive it on your back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question