#3390 www: Set SameSite and Set-Cookie2
Merged 13 days ago by tkopecek. Opened 2 months ago by jcupova.
jcupova/koji issue-3389  into  master

www: Set SameSite and Set-Cookie2
Jana Cupova • 2 months ago  
file modified
+2 -2
@@ -87,9 +87,9 @@ 

      # the Cookie module treats integer expire times as relative seconds

      c['expires'] = int(options['LoginTimeout']) * 60 * 60

      out = c.OutputString()

-     out += '; HttpOnly'

+     out += '; HttpOnly; SameSite=Strict'

      environ['koji.headers'].append(['Set-Cookie', out])

-     environ['koji.headers'].append(['Cache-Control', 'no-cache="set-cookie"'])

+     environ['koji.headers'].append(['Cache-Control', 'no-cache="Set-Cookie, Set-Cookie2"'])

  

  

  def _clearUserCookie(environ):

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 months ago

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

13 days ago

Commit 862573f fixes this pull-request

Pull-Request has been merged by tkopecek

13 days ago