summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-03-21 12:38:29 +0100
committerjmoenig <jens@moenig.org>2013-03-21 12:38:29 +0100
commit957812e6f0c5675f6bf6257a47f5243acb122881 (patch)
tree0cf26f467767b43c752c4c2234f2348a06cb85ef
parent86779af8f06ed556c95b51f1c51b81d572dbc08a (diff)
downloadsnap-byow-957812e6f0c5675f6bf6257a47f5243acb122881.tar.gz
snap-byow-957812e6f0c5675f6bf6257a47f5243acb122881.zip
Cloud: Support cookies
-rw-r--r--.DS_Storebin0 -> 6148 bytes
-rw-r--r--cloud.js4
-rwxr-xr-xhistory.txt6
3 files changed, 8 insertions, 2 deletions
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..5008ddf
--- /dev/null
+++ b/.DS_Store
Binary files differ
diff --git a/cloud.js b/cloud.js
index 42e7790..3bfb173 100644
--- a/cloud.js
+++ b/cloud.js
@@ -29,7 +29,7 @@
/*global modules, IDE_Morph, SnapSerializer, hex_sha512, alert, nop*/
-modules.cloud = '2013-February-27';
+modules.cloud = '2013-March-21';
// Global stuff
@@ -82,6 +82,7 @@ Cloud.prototype.signup = function (
+ email,
true
);
+ request.withCredentials = true;
request.onreadystatechange = function () {
if (request.readyState === 4) {
if (request.responseText) {
@@ -126,6 +127,7 @@ Cloud.prototype.connect = function (
(this.hasProtocol() ? '' : 'http://') + this.url,
true
);
+ request.withCredentials = true;
request.onreadystatechange = function () {
if (request.readyState === 4) {
if (request.responseText) {
diff --git a/history.txt b/history.txt
index 581df24..e7fc9c9 100755
--- a/history.txt
+++ b/history.txt
@@ -1545,4 +1545,8 @@ ______
* GUI: deactivated motd and cloudmsg mechanism for now (has some issues)
* Updated Portuguese translation, thanks, Manuel!
* Updated all translations for %keyHat and %msgHat specs
-* YPR: fixed turnLeft / turnRight swap bug \ No newline at end of file
+* YPR: fixed turnLeft / turnRight swap bug
+
+130321
+------
+* Cloud: allow every XMLHttpRequest to transport cookies (withCredentials = true) \ No newline at end of file