Skip to content
Snippets Groups Projects
Commit aa6116d5 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

Change Authorization headers structure

parent 736754ab
No related branches found
No related tags found
No related merge requests found
...@@ -14,9 +14,12 @@ export default class ApplicationAdapter extends JSONAPIAdapter { ...@@ -14,9 +14,12 @@ export default class ApplicationAdapter extends JSONAPIAdapter {
@computed('session.data.authenticated.token') @computed('session.data.authenticated.token')
get headers() { get headers() {
let _headers = {}; let _headers = {},
token;
if (this.session.isAuthenticated) { if (this.session.isAuthenticated) {
_headers['Token'] = this.session.data.authenticated.token; token = this.session.data.authenticated.token;
_headers['Authorization'] = `Token ${token}`;
} }
return _headers; return _headers;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment