diff options
Diffstat (limited to 'juick-server/src/main/assets')
-rw-r--r-- | juick-server/src/main/assets/scripts.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |