0

Need to add max-age to

document.cookie = "up=upv; SameSite=None; Secure";

IE

document.cookie = "up=upv;max-age=" + (60*60*24*30) + ";"

document.cookie = "up=upv;max-age=" + (60*60*24*30) + ";"
vimuth
  • 5,064
  • 33
  • 79
  • 116
  • This does not work.document.cookie = "up=upv; SameSite+None; Secure";max-age=" + (60*60*24*30) + ";" – Ollie Smith Feb 16 '23 at 17:31
  • I dont get a typo error with this but still get the Samesite attributre error in inspector
    document.cookie = "up=upv;{ secure: true }+max-age=" + (60*60*24*30) + ";"
    – Ollie Smith Feb 17 '23 at 02:39

0 Answers0