X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2Fajax.js;h=86925b03765006dae3eaeeb36bc388f61b884efb;hp=adfba467474c6bceae4bc13c784e671a0de3d7be;hb=4f298adbee00942323fc7ec517117552aeb5a08a;hpb=dac395887d96e2d642b209c6db6aaacc3ffacb34 diff --git a/client/src/utils/ajax.js b/client/src/utils/ajax.js index adfba467..86925b03 100644 --- 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"); - // 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))