From 7c9a24bfa89f7c0bf10e4e5c2aff9dbbc00d3071 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Tue, 6 Aug 2019 15:02:10 +0800
Subject: [PATCH] set httponly on my twsproxyauth cookie, perhaps this will let
 safari pass it along

---
 TES/tes/apiendpoints.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/TES/tes/apiendpoints.py b/TES/tes/apiendpoints.py
index 8df948f..76c8f34 100644
--- a/TES/tes/apiendpoints.py
+++ b/TES/tes/apiendpoints.py
@@ -475,7 +475,7 @@ class CreateTunnel(Resource):
                    localbind=localbind, authtok=authtok)
         response = make_response("")
         response.mime_type = 'application/json'
-        response.set_cookie('twsproxyauth', authtok)
+        response.set_cookie('twsproxyauth', authtok, httponly=True)
         logger.debug('JobConnect.connect: connecting via redirect with cookie authtok set to  {}'.format(authtok))
         return response
 
-- 
GitLab