Add oauth_domain to globals, and add to secure_domains.

This commit is contained in:
Logan Hanks
2012-08-22 13:38:42 -07:00
parent bbc97f841f
commit 533afca2e5

View File

@@ -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')