2022-09-16

关于跳转链接,请求头header里面添加token的问题

1:第一步:跳转链接拼接token

       比如:'http://www.baidu.com?'+'menuId='+330608810555087045 +'&Authorization='+'bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiJhZG1pbiIsInNjb3BlIjpbImFsbCJdLCJzaW5nbGVMb2dpbiI6MSwiZXhwIjoxNjYzMzYwOTU2LCJhdXRob3JpdGllcyI6WyJpc0FkbWluIl0sImp0aSI6Ijk5RldBT3ZQZmNaTzlzX3ZoekpfSTdna3Z0QSIsImNsaWVudF9pZCI6ImFkbWluIiwidG9rZW4iOiJsb2dpbl90b2tlbl8zNDA0OTkyNzkwMzIzNjYwODUifQ.EeARlSy-F6ubyKH-gCTWUioCV4VoCEh_fchIp_l2o-FyFLS1D8QGw4Pz44vNnp4BCaUatRQL2dK1uku72naD_O4qZ1L3RRyCfc-Gzo-ruAIZZ1Kff4JaVU-2qJynLAGoyR_hi-sGTmji91w1bvKnTHE1WIMvXl0peUjAGwZ9gibNjk7s5snxFWCU-yrTJj69-wbMbhTCbUrmCy2RhVemxUNU4CPsAe2L71FGOZguicu9IdpwFuV5kPIylInjZke8194UqvMgFeJZ4MWxyEVAMsYdhS4ExOg6s5vs6Z2dw8Kuq6pJOeTditWyXBWpn5B3nRJw00Tjht5EbYSKpL0wTQ'

2:将进入跳转页面之后,将跳转链接地址URL中的token本地缓存,完美就解决了!!!!



方法比困难多,别放弃,噢力给

你可能感兴趣的:(2022-09-16)