aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-12 09:50:45 +0300
committerGravatar Vitaly Takmazov2018-09-12 09:50:45 +0300
commite7bf71dd0fdbccf25a1348c1ff252b54db961b5a (patch)
treefeb8786d8dc9d6ca874dffc1a39311ab153e1508 /juick-server/src
parentb3ad5547119d7d7ca2c7359eee8b7b42a2039728 (diff)
www: fix likes
Diffstat (limited to 'juick-server/src')
-rw-r--r--juick-server/src/main/assets/scripts.js3
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) {