From f2fc615fbbdfb1cc2f2c057aae11cfdf97ec098a Mon Sep 17 00:00:00 2001 From: Matthijs Kok Date: Thu, 21 Sep 2017 20:08:00 +0200 Subject: [PATCH] Don't send header to external site --- bower.json | 2 +- lancie-ajax.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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,