Skip to content
Snippets Groups Projects
Commit 0fa04d19 authored by michael.minelli's avatar michael.minelli
Browse files

HttpManager => Add gitlab token on requests

parent 972f0ad1
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,10 @@ class HttpManager {
config.headers.Authorization = 'Bearer ' + SessionManager.token;
}
if ( GitlabManager.isLogged && config.url && config.url.indexOf(Config.gitlabApiURL) !== -1 ) {
config.headers['PRIVATE-TOKEN'] = GitlabManager.token;
}
return config;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment