[TIL] axios header



axios({
  method: "post",
  url: "/api",
  headers: { Authorization: localStorage.getItem("cookie") },
  data: {}
}).then(response => {
  this.user_validation = true;
  this.user_name = response.data.name;
  this.user_phone = response.data.tel;
  this.user_counsel_count = response.data.counseling_count;
  this.user_apply_kit = response.data.kit_name;
  this.user_apply_address = response.data.address;
  this.user_kit_shipping_check = response.data.kit_send;
  this.user_healing_contents_list = response.data.my_content_list.slice(
    0,
    4
  );
  
オブジェクトとしてvalueをpostman authorization tokenセクションheadersキー値に送信し、検証を完了