You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The component works great, but the sample code needs to be updated. Domain needs to be changed to host and the code you are using to set the expires date does not return a valid date. I fixed both as follows — if you update the example you wont have to change the code at all. Best of luck and thank you :)
const expires = new Date();
expires.setDate(14); //14 days in the future
cookie.save("cookie-name", "value", {
path: "/",
expires,
host: "https://*.hostname"
});
The text was updated successfully, but these errors were encountered:
The component works great, but the sample code needs to be updated. Domain needs to be changed to host and the code you are using to set the expires date does not return a valid date. I fixed both as follows — if you update the example you wont have to change the code at all. Best of luck and thank you :)
The text was updated successfully, but these errors were encountered: