From e7bf71dd0fdbccf25a1348c1ff252b54db961b5a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 12 Sep 2018 09:50:45 +0300 Subject: www: fix likes --- juick-server/src/main/assets/scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-server/src') diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js index 54e7958e..f3fabe94 100644 --- a/juick-server/src/main/assets/scripts.js +++ b/juick-server/src/main/assets/scripts.js @@ -528,7 +528,8 @@ function likeMessage(e, mid) { fetch('//api.juick.com/like?mid=' + mid + '&hash=' + document.getElementById('body').getAttribute('data-hash'), { method: 'POST', - credentials: 'same-origin' + mode: 'cors', + credentials: 'omit' }) .then(function (response) { if (response.ok) { -- cgit v1.2.3