Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
184
rated 0 times [  186] [ 2]  / answers: 1 / hits: 9708  / 4 Years ago, thu, july 23, 2020, 12:00:00

how do i use js-cookie with sameSite set to none & secure? is this something like this?


Cookies.set("name", "value", {SameSite : "None; secure" });


More From » cookies

 Answers
4

Just do the following:


  Cookies.set('name', 'value', {
sameSite: 'none',
secure: true
})

[#3104] Sunday, July 19, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cristoferjordih

Total Points: 513
Total Questions: 96
Total Answers: 105

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
cristoferjordih questions
Fri, Mar 19, 21, 00:00, 3 Years ago
Wed, Oct 14, 20, 00:00, 4 Years ago
Sun, Jul 12, 20, 00:00, 4 Years ago
;