Skip to content

Commit

Permalink
Merge pull request #41 from ecksor/master
Browse files Browse the repository at this point in the history
fix for cross site authentication
  • Loading branch information
mrjoes committed Dec 14, 2011
2 parents 251ff7c + 7c4111a commit cae7263
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tornadio/polling.py
Expand Up @@ -96,8 +96,7 @@ def preflight(self):
self.set_header('Access-Control-Allow-Origin',
self.request.headers['Origin'])

if self.request.headers.has_key('Cookie'):
self.set_header('Access-Control-Allow-Credentials', True)
self.set_header('Access-Control-Allow-Credentials', 'true')

return True
else:
Expand Down

0 comments on commit cae7263

Please sign in to comment.