R
R
Roma7892022-01-12 16:29:15
API
Roma789, 2022-01-12 16:29:15

Cookie parser not working?

tell me why the cookie-parser does not work, I installed it, wrote it to the middleware, but the request to the api takes an infinitely long time, that is, this middleware does not skip . I do not 61ded79cc1043878616973.jpegneed the token to be written to cookies

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WapSter, 2022-01-12
@wapster92

This is a function, call it

Q
Quasimord Sidorovich, 2022-01-12
@qwazimord

app.use(cookieParser());
You are passing a reference to a function, but you need to make a call.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question