Possible fix for pushsubscriptionchange
This commit is contained in:
parent
63bd2a96fa
commit
bb97c621e6
@ -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", {
|
||||
method: "POST",
|
||||
|
Loading…
Reference in New Issue
Block a user