Node's question about the request header

  1. I want to insert token in the request header and pass it to the backend
    that"s what I did:

clipboard.png

Node,Node

clipboard.png

token

Node

clipboard.png

I hope you can help me, thank you!

Mar.17,2021

token can be sent to the backend in cookie, and the backend can get the token field in cookie. After all, the frontend request is passed in the same way

.

clipboard.png



clipboard.png


token optionnodegetposttoken
optionpost

when the option request is successful, you can then request it as get or post


tried the landlord's method, but it still didn't work. Hey, ask for guidance

Menu