You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Basile Chandesris (JIRA)" <ji...@apache.org> on 2014/04/29 22:43:21 UTC

[jira] [Commented] (TAP5-2327) The Cookies interface should provide an option to mark cookies as httpOnly

    [ https://issues.apache.org/jira/browse/TAP5-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13984761#comment-13984761 ] 

Basile Chandesris commented on TAP5-2327:
-----------------------------------------

https://www.owasp.org/index.php/HttpOnly

> Alternatively, the /WEB-INF/web.xml can be configured with:

<session-config>
 <cookie-config>
  <http-only>true</http-only>
 </cookie-config>
</session-config>

ex: https://github.com/based2/tapestry-security-test/blob/master/tynamo-test-webapp/src/main/webapp/WEB-INF/web.xml

 


> The Cookies interface should provide an option to mark cookies as httpOnly
> --------------------------------------------------------------------------
>
>                 Key: TAP5-2327
>                 URL: https://issues.apache.org/jira/browse/TAP5-2327
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.3.7
>            Reporter: Martin Schneider
>              Labels: security
>
> Since Servlet 3.0 there is an option to mark cookies as httpOnly via javax.servlet.http.Cookie.setHttpOnly(boolean). There should be an option to use that in org.apache.tapestry5.services.Cookies. In 5.3.7 the default implementation does not set the httpOnly flag.



--
This message was sent by Atlassian JIRA
(v6.2#6252)