{"action":"created","issue":{"url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/21","repository_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended","labels_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/21/comments","events_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/21/events","html_url":"https://github.com/vimalloc/flask-jwt-extended/issues/21","id":198241956,"number":21,"title":"Missing Authorization Header","user":{"login":"guillaumeod","id":17913662,"avatar_url":"https://avatars.githubusercontent.com/u/17913662?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaumeod","html_url":"https://github.com/guillaumeod","followers_url":"https://api.github.com/users/guillaumeod/followers","following_url":"https://api.github.com/users/guillaumeod/following{/other_user}","gists_url":"https://api.github.com/users/guillaumeod/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumeod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumeod/subscriptions","organizations_url":"https://api.github.com/users/guillaumeod/orgs","repos_url":"https://api.github.com/users/guillaumeod/repos","events_url":"https://api.github.com/users/guillaumeod/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumeod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-31T18:16:34Z","updated_at":"2016-12-31T18:51:50Z","closed_at":null,"body":"Hi,\r\n\r\nI'm getting \"Missing Authorization Header\" when trying to access a jwt_refresh_token_required endpoint.\r\nI'm using 'Authorization': 'Bearer ' with the refresh_token but it tells me \"Missing Authorization Header\"\r\n\r\n`    public getNewJwt() {\r\n        // Get a new JWT from the server\r\n        let refresh_token = localStorage.getItem('access_token');\r\n        let headers = new Headers({ 'Authorization': 'Bearer ' + refresh_token });\r\n        this.result = this.http.post(this.refreshTokenApiUrl, refresh_token, headers)\r\n            .map((response: Response) => response.json)\r\n            .subscribe(result => this.result =result);\r\n        console.log(this.result);\r\n        return this.result;\r\n    }`\r\n\r\nWhat am I doing wrong :) ?"},"comment":{"url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/comments/269877687","html_url":"https://github.com/vimalloc/flask-jwt-extended/issues/21#issuecomment-269877687","issue_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/21","id":269877687,"user":{"login":"vimalloc","id":238933,"avatar_url":"https://avatars.githubusercontent.com/u/238933?v=3","gravatar_id":"","url":"https://api.github.com/users/vimalloc","html_url":"https://github.com/vimalloc","followers_url":"https://api.github.com/users/vimalloc/followers","following_url":"https://api.github.com/users/vimalloc/following{/other_user}","gists_url":"https://api.github.com/users/vimalloc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimalloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimalloc/subscriptions","organizations_url":"https://api.github.com/users/vimalloc/orgs","repos_url":"https://api.github.com/users/vimalloc/repos","events_url":"https://api.github.com/users/vimalloc/events{/privacy}","received_events_url":"https://api.github.com/users/vimalloc/received_events","type":"User","site_admin":false},"created_at":"2016-12-31T18:51:50Z","updated_at":"2016-12-31T18:51:50Z","body":"And one more thing it might be. I'm not really familiar with angular, but doing a quick look at some of their docs (https://angular.io/docs/ts/latest/guide/server-communication.html), I see this:\r\n\r\n```javascript\r\n    let headers = new Headers({ 'Content-Type': 'application/json' });\r\n    let options = new RequestOptions({ headers: headers });\r\n\r\n    return this.http.post(this.heroesUrl, { name }, options)\r\n```\r\n\r\nIs it possible you need to pass the ```RequestOptions``` to ```this.http.post``` instead of the ```Headers```? (I might be totally off the mark here)"}}
{"actor":{"display_login":"vimalloc"}}