Currently, I am working on a login authentication module. I want to use jwt for authentication, store it in the client loaclstorage, and add token to the request header. However, it is troublesome to modify the request headers one by one. Is there any simplified method?
Thanks
Please refer to http://www.cnblogs.com/dupd/p...
As long as you intercept the http request, modify the URL, header, etc., it is easy. This is global and will intercept all http requests initiated using vue.