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.
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.