From 81fbc86cad783305b0464e94109d7549aa740b95 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 23 Oct 2017 15:31:41 +0200 Subject: [PATCH] Now loggedinuser cookie variable is sent in our header on each call. --- client/app/components/http.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/app/components/http.jsx b/client/app/components/http.jsx index 8f4fbc5..dcaa80c 100644 --- a/client/app/components/http.jsx +++ b/client/app/components/http.jsx @@ -46,6 +46,7 @@ export function fetchJSON(url, method, data) { headers: new Headers({ 'Content-Type': 'application/json', 'authorization': getCookie('token'), + 'loggedinuser': getCookie('loggedInUser'), }), body: JSON.stringify(data) }).then(checkStatus).then(parseJSON);