2

I have an JBoss AS7.1 web application. I want to make it more secure, so i added some attributes to my web.xml.

<session-config>
    <session-timeout>120</session-timeout>
    <cookie-config>
        <domain>example.com</domain>
        <http-only>true</http-only>
        <secure>true</secure>
    </cookie-config>
</session-config>

This ended up with:enter image description here

Now i want to check the "SameSite" attribute. I tried to create a servlet filter, where i set the header of my "Set-Cookie" attribute, as described under How to set SameSite attribute? but it did not work.

Anybody knows, how to add the "SameSite" attribute to an JSF web application running on JBoss AS7.1?

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
Anton Styopin
  • 753
  • 4
  • 17
  • 35

0 Answers0