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, {
method,
cache: 'no-cache',
credentials: 'same-origin',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',

View File

@ -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 <mike@mikecao.com>",
"license": "MIT",