Skip to content

Commit

Permalink
Don't send header to external site
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsKok committed Sep 21, 2017
1 parent 39b0368 commit f2fc615
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lancie-ajax",
"version": "2.1.1",
"version": "2.1.2",
"description": "iron-ajax element specified for the lancie frontends",
"main": "lancie-ajax.html",
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions lancie-ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@
},

createHeader: function(token, contenttype) {
if (this.absoluteurl !== '') {
return {
'Content-Type': contenttype,
};
}
return {
'Content-Type': contenttype,
'X-Auth-Token': token,
Expand Down

0 comments on commit f2fc615

Please sign in to comment.