projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[vchess.git]
/
client
/
src
/
utils
/
ajax.js
diff --git
a/client/src/utils/ajax.js
b/client/src/utils/ajax.js
index
adfba46
..
86925b0
100644
(file)
--- a/
client/src/utils/ajax.js
+++ b/
client/src/utils/ajax.js
@@
-57,7
+57,7
@@
export function ajax(url, method, data, success, error)
}
xhr.open(method, params.serverUrl + url, true);
xhr.setRequestHeader('X-Requested-With', "XMLHttpRequest");
}
xhr.open(method, params.serverUrl + url, true);
xhr.setRequestHeader('X-Requested-With', "XMLHttpRequest");
- // Next line to allow cross-domain cookies in dev mode
(TODO: if...)
+ // Next line to allow cross-domain cookies in dev mode
if (params.cors)
xhr.withCredentials = true;
if (["POST","PUT"].includes(method))
if (params.cors)
xhr.withCredentials = true;
if (["POST","PUT"].includes(method))