mirror of https://gitlab.com/bashrc2/epicyon
Apply settings to all cookies
parent
48fbbe9247
commit
3dea14cee8
|
@ -565,7 +565,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
if cookie:
|
if cookie:
|
||||||
if not cookie.startswith('SET:'):
|
if not cookie.startswith('SET:'):
|
||||||
self.send_header('Cookie', cookie)
|
cookieStr = cookie
|
||||||
|
if self.server.httpPrefix == 'https':
|
||||||
|
cookieStr += '; Secure'
|
||||||
|
cookieStr += '; HttpOnly; SameSite=Strict'
|
||||||
|
self.send_header('Cookie', cookieStr)
|
||||||
else:
|
else:
|
||||||
setCookieStr = cookie.replace('SET:', '').strip()
|
setCookieStr = cookie.replace('SET:', '').strip()
|
||||||
if self.server.httpPrefix == 'https':
|
if self.server.httpPrefix == 'https':
|
||||||
|
|
Loading…
Reference in New Issue