From 533afca2e5a5eb0a859a9b9be52461247d9ad466 Mon Sep 17 00:00:00 2001 From: Logan Hanks Date: Wed, 22 Aug 2012 13:38:42 -0700 Subject: [PATCH] Add oauth_domain to globals, and add to secure_domains. --- r2/r2/lib/app_globals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/r2/lib/app_globals.py b/r2/r2/lib/app_globals.py index 069da9fc8..ca5f4b7cc 100755 --- a/r2/r2/lib/app_globals.py +++ b/r2/r2/lib/app_globals.py @@ -394,7 +394,8 @@ class Globals(object): https_url = urlparse(self.https_endpoint) self.secure_domains.add(https_url.netloc) self.trusted_domains.add(https_url.hostname) - + if getattr(self, 'oauth_domain', None): + self.secure_domains.add(self.oauth_domain) # load the unique hashed names of files under static static_files = os.path.join(self.paths.get('static_files'), 'static')