 
      
    Vue.js
- 2 ответа
- 0 вопросов
    0
    Вклад в тег
    
      
      
    
  
  
 
  
  methods : {
  sendCredentials() {
        axios.post('http://URL/', {
            username: this.username,
            password: this.password
        })
         .then((response) => {
             axios.defaults.headers.common.['Authorization'] = response.data.TOKEN; 
        })
         .catch((error) => {
            console.log(error);
      });
  },
}