Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [servlet-dev] SameSite attribute in Servlet 6.0

Today I gave it a try using the setAttribute method: https://gist.github.com/fmarchioni/1c7be16bebcd18cf34da11433923bae2

However, from Chrome's Network Console I cannot see the SameSite attribute
image.png

I'm testing with
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
Environment: WildFly 27 Alpha2 , Chrome Version 102.0.5005.115
Am I using correctly the API ?
Thanks a lot
Francesco

 

Il giorno ven 29 lug 2022 alle ore 20:21 Francesco Marchioni <marchioni.francesco@xxxxxxxxx> ha scritto:
Thanks Joakim!
I see the setAttribute method covers my use case. 👍 


Il giorno ven 29 lug 2022 alle 19:49 Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx> ha scritto:
There's a bunch of attribute methods on jakarta.servlet.http.Cookie that you can use now.


Is that what you are looking for?

- Joakim


On Fri, Jul 29, 2022 at 11:07 AM Francesco Marchioni <marchioni.francesco@xxxxxxxxx> wrote:
Hi all Servlet devs,
I was looking for an example class to test the SameSite attribute available in Servlet 6.0 as discussed in here:

Issue 175

Provide generic attribute support to cookies, including session cookies, to provide support for additional attributes such as the SameSite attribute.

I have looked inside the Issue but I couldn't find it,
thanks!
Francesco
_______________________________________________
servlet-dev mailing list
servlet-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/servlet-dev
_______________________________________________
servlet-dev mailing list
servlet-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/servlet-dev

Back to the top