From 6019807736724e668aa3521cb88c2bdbeb743a48 Mon Sep 17 00:00:00 2001 From: Thor Larholm Date: Mon, 5 Mar 2012 21:50:42 +0100 Subject: [PATCH] Fixing preflight to work properly with https://github.com/LearnBoost/socket.io-client/issues/333 --- tornadio2/preflight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornadio2/preflight.py b/tornadio2/preflight.py index 9e9dca4..46db79e 100644 --- a/tornadio2/preflight.py +++ b/tornadio2/preflight.py @@ -40,7 +40,7 @@ def preflight(self): self.request.headers['Origin']) if 'Cookie' in self.request.headers: - self.set_header('Access-Control-Allow-Credentials', True) + self.set_header('Access-Control-Allow-Credentials', 'true') self.set_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')