Skip to content

Add config option for Secure cookies; fix Chrome warning #266

@jfroom

Description

@jfroom

The following warning is shown in the developer console for a web client instance:

A cookie associated with a resource at URL was set with SameSite=None but without Secure. A future release of Chrome will only deliver cookies marked SameSite=None if they are also marked Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5633521622188032.

This cookie management setting does not appear to be configurable via the Amplitude JS init options. Appears to be related to issue #239 and the related PR.

Mac Chrome Version 83.0.4103.61
Amplitude JS SDK 6.2.0


Somewhat related: to configure the SameSide cookie property, the JS SDK Cookie Management docs note to use option cookieSameSite, but the CHANGELOG.md notes the property is named sameSiteCookie. sameSiteCookie appears to be the correct/working name. The SDK docs should be updated to reflect this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions