fix: ignore if no cookies are sent
This commit is contained in:
parent
11ea7e4179
commit
a35e6b4975
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ function authenticate_with_frappe(socket, next) {
|
|||
return;
|
||||
}
|
||||
|
||||
let cookies = cookie.parse(socket.request.headers.cookie);
|
||||
let cookies = cookie.parse(socket.request.headers.cookie || "");
|
||||
let authorization_header = socket.request.headers.authorization;
|
||||
|
||||
if (!cookies.sid && !authorization_header) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue