[Pkg-javascript-commits] [sockjs-client] 91/434: Do accept cookies with CORS.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 0384cc4f150e321379981bd1762e2e629269c569
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Fri Aug 19 17:58:32 2011 +0100

    Do accept cookies with CORS.
---
 lib/utils.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/utils.js b/lib/utils.js
index c7ff1bf..a0131ec 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -156,6 +156,10 @@ utils.createXHR = function(method, url, payload, callback) {
             delete xhrDefaultHeaders[k];
         }
     }
+    if ('withCredentials' in xhr) {
+        // Set cookies on CORS, please.
+        xhr.withCredentials = "true";
+    }
 
     var cleanup = function() {
         // IE needs this field to be a function

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list