Skip to content

Commit

Permalink
Fixed CORS Redmine access
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxantron committed Mar 31, 2016
1 parent aac1f36 commit 2594b7f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ scrum.sources.push({
token: '', // Token used for REST authentication
login: function() {
var self = this;
var url = this.url + '/issues.json';
this.parent.$http.get(url, { header: {
'X-Redmine-API-Key': this.token,
}}).then(function (response) {
var url = this.url + '/issues.json?key=' + this.token;
this.parent.$http.get(url).then(function (response) {
self.stories = response.data.issues;
self.story = self.stories[0];
self.loggedIn = true;
Expand Down

0 comments on commit 2594b7f

Please sign in to comment.