{"action":"created","issue":{"url":"https://api.github.com/repos/imcvampire/vue-axios/issues/1","repository_url":"https://api.github.com/repos/imcvampire/vue-axios","labels_url":"https://api.github.com/repos/imcvampire/vue-axios/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/imcvampire/vue-axios/issues/1/comments","events_url":"https://api.github.com/repos/imcvampire/vue-axios/issues/1/events","html_url":"https://github.com/imcvampire/vue-axios/issues/1","id":192802107,"number":1,"title":"authorization headers not working","user":{"login":"kyoukhana","id":756849,"avatar_url":"https://avatars.githubusercontent.com/u/756849?v=3","gravatar_id":"","url":"https://api.github.com/users/kyoukhana","html_url":"https://github.com/kyoukhana","followers_url":"https://api.github.com/users/kyoukhana/followers","following_url":"https://api.github.com/users/kyoukhana/following{/other_user}","gists_url":"https://api.github.com/users/kyoukhana/gists{/gist_id}","starred_url":"https://api.github.com/users/kyoukhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyoukhana/subscriptions","organizations_url":"https://api.github.com/users/kyoukhana/orgs","repos_url":"https://api.github.com/users/kyoukhana/repos","events_url":"https://api.github.com/users/kyoukhana/events{/privacy}","received_events_url":"https://api.github.com/users/kyoukhana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-01T10:06:45Z","updated_at":"2016-12-01T14:17:49Z","closed_at":null,"body":"If I set a common header it isn't working for some reason here is the code below. \r\n\r\n```\r\nthis.axios.defaults.headers.common['Authorization'] = 'bearer:'+atoken;\r\n```\r\n\r\nHere is the update user method\r\n```\r\n   updateUser: function(user) {\r\n                var _this=this;\r\n                var atoken = this.$auth.token();\r\n\r\n                this.axios.defaults.headers.common['Authorization'] = 'bearer:'+atoken;\r\n\r\n\r\n\r\n                this.axios.post('api/users/updateprofile', user)\r\n                    .then(function (response) {\r\n\r\n                        var data=response['data'];\r\n\r\n                        // Save Message Dialog\r\n                        _this.$refs.updateMessage.open();\r\n\r\n                    })\r\n                    .catch(function (error) {\r\n                        //console.log(error);\r\n                    });\r\n\r\n            }\r\n```"},"comment":{"url":"https://api.github.com/repos/imcvampire/vue-axios/issues/comments/264183815","html_url":"https://github.com/imcvampire/vue-axios/issues/1#issuecomment-264183815","issue_url":"https://api.github.com/repos/imcvampire/vue-axios/issues/1","id":264183815,"user":{"login":"kyoukhana","id":756849,"avatar_url":"https://avatars.githubusercontent.com/u/756849?v=3","gravatar_id":"","url":"https://api.github.com/users/kyoukhana","html_url":"https://github.com/kyoukhana","followers_url":"https://api.github.com/users/kyoukhana/followers","following_url":"https://api.github.com/users/kyoukhana/following{/other_user}","gists_url":"https://api.github.com/users/kyoukhana/gists{/gist_id}","starred_url":"https://api.github.com/users/kyoukhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyoukhana/subscriptions","organizations_url":"https://api.github.com/users/kyoukhana/orgs","repos_url":"https://api.github.com/users/kyoukhana/repos","events_url":"https://api.github.com/users/kyoukhana/events{/privacy}","received_events_url":"https://api.github.com/users/kyoukhana/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T14:17:49Z","updated_at":"2016-12-01T14:17:49Z","body":"When you pull the project navigate to \r\n\r\n/resources/assets/js/components/views/users/account/profile.vue"}}
{"actor":{"display_login":"kyoukhana"}}