From bd392e43c0f9d2da0cbe287ff3c5db34b049ee87 Mon Sep 17 00:00:00 2001 From: Martijn Janssen Date: Thu, 21 Sep 2017 17:28:18 +0200 Subject: [PATCH] Set the headers correctly (#5) * Set the headers correctly * Set initial token value & correct method * Remove debug statement --- lancie-form.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lancie-form.html b/lancie-form.html index 65ed5a7..8436049 100644 --- a/lancie-form.html +++ b/lancie-form.html @@ -20,13 +20,12 @@ }
@@ -56,7 +55,11 @@ value: false, }, refurl: String, - token: String, + token: { + type: String, + value: '', + notify: true, + } }, /* STATIC CALL */ @@ -113,9 +116,10 @@ this.fire('enter'); }, - _getHeaders: function(token) { + _getHeaders: function(token, contentType) { return { 'X-Auth-Token': token, + 'Content-Type': contentType, }; },