I use the postman request the bellow URL, it will get error:
http://localhost:8000/api/users/register/
the CSRF cookie error:
CSRF Failed: CSRF cookie not set.
the settings of my request in postman:
but if I write the request in PHP code then execute it there will not have this issue:
$params = array(
"whmcs_tblclients_id" => 1232,
"email" => "test22@qq.com",
"username" => "asdas_asda",
"phone" => "15883332126",
"password" => "123456"
);
$request = Requests::post('http://localhost:8000/api/users/register/', array(), $params);