Answer the question
In order to leave comments, you need to log in
How to specify property name in JSON data?
there are 2 variables. csrf field name and value, i.e. token:
var csrf_param = $('meta[name=csrf-param]').attr("content");
var csrf_token = $('meta[name=csrf-token]').attr("content");
var data = {'Свойство':'Значение'};
var data = {csrf_param:csrf_token};
{csrf_param:значение токена};
var csrf_param = '_csrf';
var csrf_token = 1234567;
var data = {csrf_param:csrf_token};
// как получается:
{csrf_param:1234567}
// как должно быть:
{_csrf:1234567}
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