set httponly on cookies

This commit is contained in:
Min RK
2017-07-11 11:06:00 +02:00
parent 396f454998
commit a51141810d
2 changed files with 5 additions and 3 deletions

View File

@@ -478,6 +478,7 @@ class HubOAuth(HubAuth):
"""Set a cookie recording OAuth result"""
kwargs = {
'path': self.base_url,
'httponly': True,
}
if handler.request.protocol == 'https':
kwargs['secure'] = True