Answer the question
In order to leave comments, you need to log in
Why does not the full array come to the server?
Hello everyone, I'm sending an array with Ajax, but part of the array is lost along the way.
Here is the console before sending
. Here is the apishka working in echo mode. Comes without transfer
Here is the code before sending:
let dataFlight = {};
dataFlight['flights'] = flights;
dataFlight['csrf_ws_name'] = $('.csrf').val();
console.log(dataFlight)
$.ajax({
url: "/api/set_api_flights",
type: "POST",
dataType: "json",
data: dataFlight,
success: function (res) {
///
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question