Skip to content

Commit 54b97d9

Browse files
author
Ives van Hoorne
committed
Fix unique view count for direct views on preview
1 parent 3df14a7 commit 54b97d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app/src/sandbox/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ requirePolyfills().then(() => {
9898
// We need to fetch the sandbox ourselves...
9999
const id = getId();
100100
window
101-
.fetch(host + `/api/v1/sandboxes/${id}`)
101+
.fetch(host + `/api/v1/sandboxes/${id}`, {
102+
credentials: 'include',
103+
})
102104
.then(res => res.json())
103105
.then(res => {
104106
const camelized = camelizeKeys(res);

0 commit comments

Comments
 (0)