diff options
author | Vitaly Takmazov | 2018-09-12 09:50:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-12 09:50:45 +0300 |
commit | e7bf71dd0fdbccf25a1348c1ff252b54db961b5a (patch) | |
tree | feb8786d8dc9d6ca874dffc1a39311ab153e1508 | |
parent | b3ad5547119d7d7ca2c7359eee8b7b42a2039728 (diff) |
www: fix likes
-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) { |