From 6bc51fb3878564012ce7af1a75b7fa049ab5f3c5 Mon Sep 17 00:00:00 2001 From: MrFry Date: Fri, 24 Apr 2020 19:19:16 +0200 Subject: [PATCH] Including credetials on posting new data --- src/pages/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/index.js b/src/pages/index.js index e8cd2ff..6d2731f 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -122,6 +122,7 @@ export default function Index (props) { 'Accept': 'application/json', 'Content-Type': 'application/json' }, + credentials: 'include', body: JSON.stringify({ newData: data, count: getCount(data),