Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] SameSite to STRICT
  • From: Sai Sankar Challa <saisankar.c@xxxxxxxxxxxxxxxx>
  • Date: Wed, 14 Jul 2021 18:02:39 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=motivitylabs.com; dmarc=pass action=none header.from=motivitylabs.com; dkim=pass header.d=motivitylabs.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5ff5A/1CV+Cy6Sgs9+E3lF0OMpKQVcuma3wUXjeSzpI=; b=FsQkFsOUvSGMwuntiOaNmUWg15z8GDGDHJuB1/hCOHv+SR12O0Ad/tq3K8vtBWwOpR4S5XhZuH2cqqp0MPUZMnUY/L39LQHZ9nuqj2oySh/9oXMC9ickk22ie31wZF3Iuq+E2dZUgCocoSI+wrJft5f4VQrf7qFSBfKuKbsF1cGAIuaXoYoixQfsKbzF5sy+upQG8fWrJ5NLcBxBkI7ovhwlLtEmGVLHdHDoVyCnDYSnfUejTKSZNYxkD3Y861VS6YZJZlsWZX0mG96sYrv3GVFbdMAa0ysteBwX5Mly+ewzIrUHhT4j2+bDGV+iatURRnz5g5R7SxMCSZfyexVhZQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oPFoo7mVuzGQTAMXOsAIHZshU3Cpsnvflaee/skP7JbTfMWkRgvnPMYsO9LuiqaPCdbMGwL9Bx6kHuPAYoIPeHi2/4PQ3kWTVfrRALJRGFNj6wsGu7MYJrOwXM0toFIes4wjqbfLQFdyi/+eN5ZDmGfXyrezPjz3ia2kaYiRh4p9DhnaVZ2QMaBexZrNT2UUe3XZ9a7c6E799fnABsvEigr7yqGn7ehm3PXBfpamMw0ZDx4qdbc/vxsQ2x0fsDztwrTujpqx3r14IrQzUWj3ar3Sn9gkbaOsgRT+i1jU36dyTLPUXnHPGe9u0PMT4CNLerFzFe/rbJ+1MVRjYRZh0A==
  • Delivered-to: jetty-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jetty-users/>
  • List-help: <mailto:jetty-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Add4tdcAS9eH5mhgQFikE+fa8TbQAAAFhfCAAAB7dpAAAYMNgAABXHNg
  • Thread-topic: [jetty-users] SameSite to STRICT

Sorry for snipped images.

 

Here is the configuration added in web.xml

 

<session-config>

    <cookie-config>

     <http-only>true</http-only>

     <secure>true</secure>

     <comment>__SAME_SITE_STRICT__</comment>

    </cookie-config>

  </session-config>

 

 

Response Headers

HTTP/1.1 200 OK

Content-Type: text/html;charset=utf-8

Set-Cookie: JSESSIONID=node0u99zpkbrxegr59fnxzac8m217.node0; Path=/dashboard; Secure; HttpOnly

Expires: Thu, 01 Jan 1970 00:00:00 GMT //Here expecting SameSite to be returned

Set-Cookie: JSESSIONID=; Path=/; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0

X-Frame-Options: DENY

Referrer-Policy: same-origin

X-Content-Type-Options: nosniff

X-XSS-Protection: 1; mode=block

Content-Security-Policy: default-src 'self' https:; script-src 'self'  'sha256-jLiclQuK1N1QZInVr4VJp6uKckK7+/GGsba4nme+PRA=' 'sha256-WcSfBbTthoIIuIdlLvU5spxO2l32y5Nw3Oh4jk4VnBY='; object-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; media-src 'self'; frame-src 'self'; font-src 'self'; connect-src 'self'

Strict-Transport-Security: max-age=31536000; includeSubDomains

Content-Length: 3737

 

Thanks

Sai

 

From: Joakim Erdfelt <joakim@xxxxxxxxxxx>
Sent: Wednesday, July 14, 2021 10:46 PM
To: Sai Sankar Challa <saisankar.c@xxxxxxxxxxxxxxxx>
Cc: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: Re: [jetty-users] SameSite to STRICT

 

You are using browser developer tooling.

 

What does the raw HTTP Response (that sets the JSESSIONID) look like?

As in, can you copy/paste the response, in raw form (not in a table, not post-parsed, not as an image) to this mailing list?


Joakim Erdfelt / joakim@xxxxxxxxxxx

 

 

On Wed, Jul 14, 2021 at 11:34 AM Sai Sankar Challa <saisankar.c@xxxxxxxxxxxxxxxx> wrote:

Thanks for the response.

 

I am assuming this done by Jetty Server.

 

The URL we are trying is the very first URL i.e., login page, post login we do have filter classes where we are doing some modifications.

 

Thanks

Sai

 

 

From: Joakim Erdfelt <joakim@xxxxxxxxxxx>
Sent: Wednesday, July 14, 2021 9:49 PM
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Cc: Sai Sankar Challa <saisankar.c@xxxxxxxxxxxxxxxx>
Subject: Re: [jetty-users] SameSite to STRICT

 

What does the actual HTTP Response that created that JSESSIONID look like?


Joakim Erdfelt / joakim@xxxxxxxxxxx

 

 

On Wed, Jul 14, 2021 at 11:07 AM Sai Sankar Challa via jetty-users <jetty-users@xxxxxxxxxxx> wrote:

Hi Team

 

We upgraded our Jetty version to 9.4.38.v20210224 and we want to Set 'SameSite' attribute to 'Strict'  in JSESSIONID for our portal security .

 

We made the code changes as per below in our web.xml and still not seeing any difference.

 

  <session-config>

    <cookie-config>

     <http-only>false</http-only>

     <secure>false</secure>

     <comment>__SAME_SITE_STRICT__</comment>

    </cookie-config>

  </session-config>

 

Browser Cookie

 

 

Can you please through some idea to get this done .

 

Thanks

Sai

 

 

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users


Back to the top