Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

26 lines (19 sloc) 893 Bytes

JavaScript example for SameSite=None; Secure

Calls to document.cookie continue to work as they have before. You can provide the SameSite attribute as part of the assigned string.

document.cookie = 'same-site-cookie=foo; SameSite=Lax';
document.cookie = 'cross-site-cookie=bar; SameSite=None; Secure';
You can’t perform that action at this time.