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 all Cookies #949

Closed M-Razavi closed 5 years ago

M-Razavi commented 6 years ago

I asked this question on Stack-overflow but unfortunately there is no answer for it. Would you please give me a solution to set HttpOnly for all cookies ?

There are some solution on StackOverflow to create a new embedded server and customize it, but only works for version 2.6 . Is there any solution for version 2.7?

https://stackoverflow.com/questions/47525841/set-httponly-for-all-cookies-in-spark-java

perwendel commented 5 years ago

If I don't remember incorrectly this has a fix. #1027

tipsy commented 5 years ago

Should be fixed, yeah.