From c6eec3ee62b8d24335ec176a7a3ee43a6a91c41e Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 22 Sep 2020 18:35:11 -0700 Subject: [PATCH] Include credentials in fetch. --- lib/web.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/web.js b/lib/web.js index 4081b3ab..82c1e75b 100644 --- a/lib/web.js +++ b/lib/web.js @@ -2,6 +2,7 @@ export const apiRequest = (method, url, body) => fetch(url, { method, cache: 'no-cache', + credentials: 'same-origin', headers: { Accept: 'application/json', 'Content-Type': 'application/json', diff --git a/package.json b/package.json index 543e201b..639a5bc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "umami", - "version": "0.49.0", + "version": "0.50.0", "description": "A simple, fast, website analytics alternative to Google Analytics. ", "author": "Mike Cao ", "license": "MIT",