cURL CSRF Token

后端 未结 3 1820
無奈伤痛
無奈伤痛 2020-12-30 17:57

I few months ago, my colleague created an calendar subscription by getting the work schedule. I believe he has done this by cURL.

Now I\'m building a website to have

3条回答
  •  灰色年华
    2020-12-30 18:23

    I have a feeling that you should be adding the token like this:

    $headers[] = 'X-CSRF-Token:' .  $token;
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    

提交回复
热议问题