Now loggedinuser cookie variable is sent in our header on each call.

This commit is contained in:
2017-10-23 15:31:41 +02:00
parent d836dd01d3
commit 81fbc86cad

View File

@@ -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);