<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set the HttpOnly flag for the cookie in alfresco. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98808#M28774</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/79410"&gt;@akash251998&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I'm so glad&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;was able to help you resolve your issue &amp;amp; thank you for accepting his solution.&lt;/P&gt;
&lt;P&gt;Best wishes,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2020 14:07:38 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2020-08-14T14:07:38Z</dc:date>
    <item>
      <title>How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98801#M28767</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using alfresco community version 5.2 and due to some security concern i want to set Httponly flag for the cookie.&lt;/P&gt;&lt;P&gt;How to do that. Please suggest any solution&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Akash D&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 05:44:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98801#M28767</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-13T05:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98802#M28768</link>
      <description>&lt;P&gt;It depends on which cookie you want to set the httpOnly flag on. The JSESSIONID is one of the easiest cookies to switch to httpOnly because you can do that via Tomcat configuration via the &lt;A href="https://tomcat.apache.org/tomcat-8.0-doc/config/context.html" target="_self" rel="nofollow noopener noreferrer"&gt;context configuration&lt;/A&gt; (useHttpOnly) for the Alfresco / Share web application in &amp;lt;tomcat&amp;gt;/conf/Catalina/localhost/alfresco.xml or share.xml&lt;/P&gt;
&lt;P&gt;All other cookies are tougher to crack, and in the end, I typically end up with Cookie rewrite handling in the Reverse Proxy, similar to &lt;A href="https://github.com/Acosix/acosix-docker-generic/blob/master/baseimage-apache/src/main/resources/alfresco-pure.host.ssl.conf.sample#L22" target="_self" rel="nofollow noopener noreferrer"&gt;this handling of Secure/SameSite&lt;/A&gt;. Of course for httpOnly you absolutely have to be sure that no client JavaScript ever needs to access the cookie value, so it should not be handled in such a generic / blanket fashion.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 07:13:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98802#M28768</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-08-13T07:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98803#M28769</link>
      <description>&lt;P&gt;Sorry afaust as i am unable to perform the solution provided by you. So is there any other solution with the help of which i can set httpOnly for alfresco.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Akash D&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 11:03:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98803#M28769</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-13T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98804#M28770</link>
      <description>&lt;P&gt;I am not aware of any simpler solution, as I too would have used such if it were available.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 11:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98804#M28770</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-08-13T11:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98805#M28771</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp; as explaied by you:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It depends on which cookie you want to set the httpOnly flag on. The JSESSIONID is one of the easiest cookies to switch to httpOnly because you can do that via Tomcat configuration via the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://tomcat.apache.org/tomcat-8.0-doc/config/context.html" target="_self" rel="nofollow noopener noreferrer"&gt;context configuration&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(useHttpOnly) for the Alfresco / Share web application in &amp;lt;tomcat&amp;gt;/conf/Catalina/localhost/alfresco.xml or share.xml.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please tell what code i need to add and where. Please help it could solve my issue. I want to set httpOnly for JSESSIONID cookie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hoping for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Akash&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 06:09:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98805#M28771</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-14T06:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98806#M28772</link>
      <description>&lt;P&gt;All the information was already in my original reply. You need to set th useHttpOnly config attribute in alfresco.xml / share.xml in the specified paths. The only thing I can do more is to link to &lt;A href="https://github.com/Acosix/acosix-docker-alfresco/blob/master/basic-images/alfresco-share-java11/src/main/resources/share.xml#L2" target="_self" rel="nofollow noopener noreferrer"&gt;a sample file from my Docker build&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:09:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98806#M28772</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-08-14T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98807#M28773</link>
      <description>&lt;P&gt;Thanku so much&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp; for your help.&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Akash&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:54:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98807#M28773</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-14T11:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98808#M28774</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/79410"&gt;@akash251998&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I'm so glad&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;was able to help you resolve your issue &amp;amp; thank you for accepting his solution.&lt;/P&gt;
&lt;P&gt;Best wishes,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:07:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98808#M28774</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-08-14T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98809#M28775</link>
      <description>&lt;P&gt;Dear &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp; as per your suggestion i have done the changes in the files alfresco.xml and share.xml at the location :&lt;/P&gt;&lt;P&gt;D:\DMS\tomcat\conf\Catalina\localhost&lt;/P&gt;&lt;P&gt;My alfresco.xml file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;&amp;lt;Context crossContext="true" useHttpOnly="true"&amp;gt;&lt;BR /&gt;&amp;lt;Loader className="org.apache.catalina.loader.VirtualWebappLoader" virtualClasspath="${catalina.base}/../modules/platform/*.jar" /&amp;gt;&lt;BR /&gt;&amp;lt;/Context&amp;gt;&lt;/P&gt;&lt;P&gt;My share.xml file&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;&amp;lt;Context crossContext="true" useHttpOnly="true"&amp;gt;&lt;BR /&gt;&amp;lt;Loader className="org.apache.catalina.loader.VirtualWebappLoader" virtualClasspath="${catalina.base}/../modules/share/*.jar" /&amp;gt;&lt;BR /&gt;&amp;lt;/Context&amp;gt;&lt;/P&gt;&lt;P&gt;I am getting the JSESSIONID in my cookies as not set to httpOnly. I am attaching screenshot ofthe cookies information.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error" style="width: 718px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/791i95B697C02C3F236A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any other change we have to do to achieve our requirement.&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;please have a look hope this time also i will get a positive response.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Akash D&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 06:23:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98809#M28775</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-17T06:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the HttpOnly flag for the cookie in alfresco.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98810#M28776</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&amp;nbsp; will you please look into the above issue.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 04:57:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-the-httponly-flag-for-the-cookie-in-alfresco/m-p/98810#M28776</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-18T04:57:01Z</dc:date>
    </item>
  </channel>
</rss>

