Possible fix for pushsubscriptionchange

This commit is contained in:
Eduard Urbach 2017-12-01 15:42:13 +01:00
parent 63bd2a96fa
commit bb97c621e6

View File

@ -292,7 +292,9 @@ class MyServiceWorker {
} }
} }
let user = await fetch("/api/me").then(response => response.json()) let user = await fetch("/api/me", {
credentials: "same-origin"
}).then(response => response.json())
return fetch("/api/pushsubscriptions/" + user.id + "/add", { return fetch("/api/pushsubscriptions/" + user.id + "/add", {
method: "POST", method: "POST",