Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for SamSite cookie attribute#1376

Open
PSpSynedra wants to merge 2 commits into
restlet:2.4 from
PSpSynedra:2.4
Open

Add support for SamSite cookie attribute #1376
PSpSynedra wants to merge 2 commits into
restlet:2.4 from
PSpSynedra:2.4

Conversation

@PSpSynedra

@PSpSynedra PSpSynedra commented Oct 22, 2020

Copy link
Copy Markdown

This pull request adds support for the SameSite cookie attribute to:

  • org.restlet.data.CookieSetting
  • org.restlet.engine.header.CookieSettingWriter
  • org.restlet.engine.header.CookieSettingReader

It also adds tests for the added functionality via:

  • org.restlet.test.engine.header.CookieSettingReaderTestCase
  • org.restlet.test.engine.header.CookieSettingWriterTestCase

According to the description of SameSite cookies on MDN [1] the SameSite cookie attribute controls in requests a cookie is included in.
The absence of the SameSite attribute might trigger warnings in modern browsers.
Some browsers might event reject cookies with missing or wrongly set SameSite attributes.

Some scenarios might also require the SameSite attribute to be Strict so the corresponding cookie is only being sent in requests initiated by the same site.

The changes in modules/org.restlet.test/pom.xml where necessary for eclipse to match the packages with the folder structure.

[1] - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite

PrimosK and AndrejJesenkoVound reacted with thumbs up emoji

thboileau commented Jan 6, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

Hi @PSpSynedra
Thanks a lot for your contribution!
As a first-time contributor, do you mind to sign this JCA return it to jerome.louvel@qlik.com ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /