Can't pass header with token for redirect NodeJS
问题 I've got big problem with my login system in NodeJS. I created login site, when i'm logging in. When i check if login and password is correct i make jwt token. Then i would like to pass it into header and redirect to my user page by get method. I searched a lot of sites and I' cant solve this problem. This is what I try to do: const token = jwt.sign({_id: id}, process.env.TOKEN); res.header('auth-token', token); res.redirect('/admin/admin_panel'); I would like to this work like Postman. I set