I’ve noticed that when our Angular webapp subscribes to server events in Chrome I get a SameSite warning which we don’t get if the app doesn’t subscribe to serverevents.
Can anyone explain what we need to do to get around this potential problem?
Chrome provides this detail in its ‘Issues’ tab (bottom of the Console page):
Indicate whether a cookie is intended to be set in a cross-site context by specifying its SameSite attribute
1. Because a cookie’s `SameSite` attribute was not set or is invalid, it defaults to `SameSite=Lax` , which prevents the cookie from being set in a cross-site context. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
* Specify `SameSite=None` and `Secure` if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the `Secure` attribute.
* Specify `SameSite=Strict` or `SameSite=Lax` if the cookie should not be set by cross-site requests.
2. AFFECTED RESOURCES
1. 2 cookies
2. 1 request
1. event-unregister?id=9qNZtAEB5gSDnzZtlT47
3. * Learn more: SameSite cookies explained