Guest User

Untitled

a guest
Jan 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <meta name="csrf-token" content="{{ csrf_token() }}">
  2.  
  3. tryAuth () {
  4.  
  5. if (this.$refs.form.validate()) {
  6.  
  7. let _this = this
  8.  
  9. axios.post('/trylogin',_this.loginInfo, {
  10. headers: {
  11. //'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
  12. },
  13. //withCredentials: true
  14. }).then(function(response){
  15.  
  16. console.log(response.data)
  17.  
  18. })
  19. .catch(function(error){
  20.  
  21. })
  22.  
  23. }
Add Comment
Please, Sign In to add comment