Include credentials in fetch.

This commit is contained in:
Mike Cao 2020-09-22 18:35:11 -07:00
parent aeff30ab87
commit c6eec3ee62
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ export const apiRequest = (method, url, body) =>
fetch(url, { fetch(url, {
method, method,
cache: 'no-cache', cache: 'no-cache',
credentials: 'same-origin',
headers: { headers: {
Accept: 'application/json', Accept: 'application/json',
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@ -1,6 +1,6 @@
{ {
"name": "umami", "name": "umami",
"version": "0.49.0", "version": "0.50.0",
"description": "A simple, fast, website analytics alternative to Google Analytics. ", "description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao <mike@mikecao.com>", "author": "Mike Cao <mike@mikecao.com>",
"license": "MIT", "license": "MIT",