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 secure string is not removed from the cookies, i edit the coding to get it work:
// We always filter the secure header to avoid the cookie from
// "not" beeing included in follow up requests in case of the
// proxy is running on HTTP and not HTTPS
let cookies = res.getHeader("set-cookie");
// array == multiple cookies
if (Array.isArray(cookies)) {
for (let i = 0; i < cookies.length; i++) {
//cookies[i] = cookies[i].replace("secure;", "");
cookies[i] = cookies[i].replace("secure", "");
}
} else if (typeof cookies === "string" || cookies instanceof String) {
// single cookie
//cookies = cookies.replace("secure;", "");
cookies = cookies.replace("secure", "");
}
The reason is that the secure string not allows ends with ";"
Please fix that.
Thanks
Haunted
The text was updated successfully, but these errors were encountered:
Hello,
the secure string is not removed from the cookies, i edit the coding to get it work:
The reason is that the secure string not allows ends with ";"
Please fix that.
Thanks
Haunted
The text was updated successfully, but these errors were encountered: