diff --git a/bower.json b/bower.json index 8cac8c8..8f7f8f5 100644 --- a/bower.json +++ b/bower.json @@ -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": { diff --git a/lancie-ajax.html b/lancie-ajax.html index 8793db1..5fb426d 100644 --- a/lancie-ajax.html +++ b/lancie-ajax.html @@ -136,6 +136,11 @@ }, createHeader: function(token, contenttype) { + if (this.absoluteurl !== '') { + return { + 'Content-Type': contenttype, + }; + } return { 'Content-Type': contenttype, 'X-Auth-Token': token,