News for hackers. Stuff that matters.
Re:Securing cookies in Go by paulddraper on Friday September 14, 2018 @01:54AM (#17985002)
FWIW, that's exactly how it works in client-side browsers scripting.

    document.cookie = 'name=value';
Re:Securing cookies in Go by gcb0 on Friday September 14, 2018 @03:38AM (#17985408)
client side cookoes are already inherently unsafe.

on the server, the chance that your cookie is for auth is high, so make a secure cookie the defaul. force http headers that say server only, etc. Then allow for the security to be dropped via the extra arguments, not the other way around.