Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <meta name="csrf-token" content="{{ csrf_token() }}">
- tryAuth () {
- if (this.$refs.form.validate()) {
- let _this = this
- axios.post('/trylogin',_this.loginInfo, {
- headers: {
- //'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
- },
- //withCredentials: true
- }).then(function(response){
- console.log(response.data)
- })
- .catch(function(error){
- })
- }
Add Comment
Please, Sign In to add comment