Current location - Loan Platform Complete Network - Foreign exchange account opening - How to solve the problem that jwttoken is empty?
How to solve the problem that jwttoken is empty?
Details are as follows.

The simplest and most convenient way is to directly modify the key value in the request header. I changed keyApp_Token to App-Token, and I can get it normally. Remove the restriction of Nginx, modify the default off of nderscores _ in _ headers in the http part of nginx.conf configuration file in nginx, and directly add underscore _in_headerson, if there is no such default; Do it.

: token needs to check the database to verify whether the token is valid, while JWT does not need to check the database or check the database less, and checks it directly on the server without checking the database. When the server verifies the token information sent by the client, it needs to query the data. Jwt does not need to verify the token sent by the client. Only use key authentication on the server instead of querying the database.