perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

Set HttpOnly for session cookie due to improvement of security #1027

Closed asolntsev closed 6 years ago

asolntsev commented 6 years ago

This is an improvement for PR https://github.com/perwendel/spark/pull/965 from @M-Razavi

In this PR, I

  1. I made it possible to disable HttpOnly flag (just in case, probably somebody will need it).
  2. Added unit-tests.
asolntsev commented 6 years ago

@perwendel @tipsy @jakaarl @joatmon @M-Razavi ping

asolntsev commented 6 years ago

@perwendel PING!

asolntsev commented 6 years ago

@perwendel Hello! Is anybody alive?

perwendel commented 6 years ago

@asolntsev Hey, two questions:

asolntsev commented 6 years ago

@perwendel

perwendel commented 6 years ago

@asolntsev get it! Thanks!