Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Include credentials in fetch.

Mike Caoc6eec3ee62b8
diff --git a/lib/web.js b/lib/web.js
index 4081b3abd..82c1e75bd 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 543e201b1..639a5bc55 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 <[email protected]>",
"license": "MIT",